Elicrespo Posted October 24, 2023 Share Posted October 24, 2023 Hey guys, Just a quick question about ScrollTrigger markers, I know we can create a marker object and customize our markers css, but can we give them names or id? so I can toggle them on n off?? I thought I did that in one of my projects but forgot, not sure. I appreciate the help. Link to comment Share on other sites More sharing options...
Solution Rodrigo Posted October 24, 2023 Solution Share Posted October 24, 2023 Hi, The id is something that can be added to the ScrollTrigger config object, not the Markers object as shown in this demo: See the Pen XWOJGVV by GreenSock (@GreenSock) on CodePen Hopefully this helps. Happy Tweening! Link to comment Share on other sites More sharing options...
Elicrespo Posted October 25, 2023 Author Share Posted October 25, 2023 Thank you @Rodrigo. Appreciate it. 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