Policsek Posted May 30, 2021 Share Posted May 30, 2021 Hi. I'm trying to animate the borders for each section but only when the section enters the viewport. For section 1, animate borders when section 1 is in the viewport, for section 2, animate borders when section 2 is in the viewport. And so on See the Pen JjWOrde by bogdan-florin (@bogdan-florin) on CodePen Link to comment Share on other sites More sharing options...
Solution Cassie Posted May 30, 2021 Solution Share Posted May 30, 2021 You hadn't included the scrollTrigger library 🙃 It's not part of GSAP's core! You can add markers too if you want to see where each section is triggered See the Pen be0013b7933073d2b2ca5707533680f9 by cassie-codes (@cassie-codes) on CodePen 3 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now