Jump to content
Search Community

TweenLineLite className not Add correctly

Ahmed Elabbasy test
Moderator Tag

Recommended Posts

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:


  • Like 1
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...