Replies: 1 comment
-
The way i've used GSAP in the past is by referencing the items that are animated with a useRef hook and then calling them on componentDidMount or useEffect. There's a ton of examples on the GSAP Forums |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
In my project im making extensive use of GSAP to animate things (from page transitions to single piece on pages)
Now i have a page which is a list of recent works, every works got multiple images, at the moment im simply rendering the grid with the first image i got back from graphql and for this im using gatsby-img Img component;
my goal is to have the Img component fade (or transition some way) between the available images for the entry, at random (or at least at some intervals that looks random)
this is how i place my grid right now, with only the first image:
any idea on how i can implement this?
Beta Was this translation helpful? Give feedback.
All reactions