How do you add dynamic movement for NextJS Tailwind CSS elements?
Unanswered
Transvaal lion posted this in #help-forum
Transvaal lionOP
I have this image and I would like to make the
white triangle next to Hero move depending on where it clicks. I can go through every individual element Hero, Sign up, Contact and FAQ and add an onClick attribute to these elements and hardcode a function for each individual element. But I was wondering if there is a dynamic way of doing this with NextJS and Tailwind CSS. If I add more elements to my list, then it would dynamically move the triangle to the appropriate element.