evan.oneil
Content Type
Profiles
Forums
Store
Blog
Product
Showcase
FAQ
Downloads
Posts posted by evan.oneil
-
-
I am still at the early stages of learning React, but I was wondering if anyone had resources or suggestions on how to get this to work in React. I've picked up that using
gsap.registerPlugin(ScrollTrigger);
is a neccesary first step, but beyond that I'm struggling to find a way to port this over to React. I would greatly appreciate any help, thank you!
See the Pen gOmZYqL by evanoneil (@evanoneil) on CodePen
Help getting a ScrollTrigger animation to work in React
in GSAP
Posted
Thanks for the quick reply! I have read through that article a few times and been experimenting, I'm struggling to know where to start with getting the pin function to work. I tried to modify the example from that article with something basic of getting the Greensock logo to pin to the second slide, but no luck so far. Here's the codesandbox of this initial effort.
Do you have any suggestions of resources I could look into for using the pin function in react or thoughts on how I can get it working?
Thanks!