Share Posted June 10, 2020 className: "+=active" just remove all class's and so on https://codesandbox.io/s/affectionate-cookies-9hccc See the Pen by s (@s) on CodePen Link to comment Share on other sites More sharing options...
Share Posted June 10, 2020 Hey Ahmed. Why not use .classList.add() for adding a class? But anyway, built in support for className tweens was removed in GSAP 3 as we recommend that people directly tween properties instead. However there are workarounds and an official className plugin if you want to use them still: Side note: Lite/Max stuff is old. We highly recommend using GSAP 3 formatting. This migration guide can help you get all of the old syntax switched over: 1 Link to comment Share on other sites More sharing options...
Author Share Posted June 10, 2020 hi Zach Thanks for the quick reply .. I am learning from old sources to understand it more deeply and I am a little distracted from your documents Can you tell me a video source to learn? As for the problem, it has been solved Link to comment Share on other sites More sharing options...
Share Posted June 10, 2020 @Carl has a video course you could check out: https://courses.snorkl.tv/courses/gsap-3-express?ref=44f484 2 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