GDW Posted October 2, 2022 Share Posted October 2, 2022 Hey, newbie here! I'm trying to have the first image show before scrolling, is this possible?? Any help appreciated! Thanks in advance See the Pen eYgdgZG by rahuldev39 (@rahuldev39) on CodePen Link to comment Share on other sites More sharing options...
Solution Rodrigo Posted October 2, 2022 Solution Share Posted October 2, 2022 Hi @GDW and welcome to the GreenSock forums! Hopefully this is what you're looking for: See the Pen OJZZwbj by GreenSock (@GreenSock) on CodePen Basically the idea is to check for the first element when creating the animations in the loop and when running the getCurrentSection method, at first run the lastContent variable is undefined, so that means we have to hide the first kitten Happy Tweening! 1 Link to comment Share on other sites More sharing options...
GDW Posted October 5, 2022 Author Share Posted October 5, 2022 Thanks @Rodrigo that's perfect! 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