Hi! I'm working with React and can't resolve an issue. I'm getting array of objects from API and show them using .map(). I need to display the Title of the picture when hovering the Section with that picture. Now I'm only getting the title of the last picture when hovering each of sections.
onMouseEnter and Leave on the array in React
in GSAP
Posted
Hi! I'm working with React and can't resolve an issue. I'm getting array of objects from API and show them using .map(). I need to display the Title of the picture when hovering the Section with that picture. Now I'm only getting the title of the last picture when hovering each of sections.
See the Pen bGgqXdG by Arahis (@Arahis) on CodePen