Hello! Me again.
I have this codepen here:
I want to implement it to my React / Next.js project. I wanted to have gsap animation codes be seperate from my page/component codes.
So the codebase could be clean and I would have reusable animation component.
But I have problems with Ref's I think.
Here is the error I get when I try to animate multiple imported children element with a loop, in parent gsap animation component:
https://codesand