skip to Main Content

Css – Transitioning SVG Line Position

document.addEventListener("DOMContentLoaded", (event) => { const hamburgerButtons = document.querySelectorAll('.hm-button'); const hamburgerLines = [ { closed: { x1: 13, x2: 37, y1: 13, y2: 13, }, open: { x1: 13, x2: 37, y1: 37, y2: 13, } }, { closed: { x1:…

VIEW QUESTION

Javascript – How to use relative path in Next Image?

I want to fetch corresponding product image on each dynamic route in my NextJS project, like this: export default function singleProductPage({ params }) { const { product_code } = params; const imagePath = `../../../../assets/products/Hammer/${product_code}.jpg`; return ( <div> <Image src={imagePath} width={300}…

VIEW QUESTION
Back To Top
Search