Share Posted January 19, 2021 Hi, how do i add a class without deleting the old one? This is what i did:https://jsfiddle.net/djpw1oq7/ regards Link to comment Share on other sites More sharing options...
Solution Solution Share Posted January 19, 2021 Hey justcasper. As covered in the release notes, className tweens were removed from GSAP. What are you trying to accomplish? Just adding a class? I'd use the classList API for that: elem.classList.add('newclass'); 1 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