Jump to content
Search Community

DOM element's style doesn't stay what I set it to after the gsap.to function completes.

Bimal Pandey test
Moderator Tag

Go to solution Solved by nico fonseca,

Recommended Posts

  • Solution

Hey @Bimal Pandey you can use the same tween and play with the reverse and play methods to show and hide the cursor.
I made a Codepen for you so you can see the example in action 🙌

See the Pen 8dca6234eee2852316e898382b34b303 by nicofonseca (@nicofonseca) on CodePen


PS: To follow the cursor you can use the method quickSetter() for a boosted performance 


Happy tween 🎉

  • Like 5
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...