Hi Yunus!   Hooks can't be inside other functions, so putting useRef and useEffect inside a forEach won't work. On top of that, the children prop is a React object, so GSAP can't call toArray on it.   Here a couple of different approaches. The first is just fixing what you originally had.   https://codesandbox.io/s/gsap-react-nextjs-forked-el7xw?file=/src/Animations.jsx   If you want to use a fragment instead of wrapping the children with an element, then
    • Like
    2