Jump to content


Increasing TimeLine value on mouse move

Recommended Posts

Hi, do you have any tips how make a dragger/timeline or progress bar fulfill by itself as the mouse is being moved?
Additionally, how to read its value in real time? 
I want to update mood.progress() value adequately.

In short words - the goal is for pet's mood to get better as you move your mouse. Right now you can do it by dragging a dot on a slider.

I'm using GSAP since yesterday. I've been fighting all day with it and cannot think of any proper solution.



[EDIT] Solved

See the Pen NWNdKZv by kamdre (@kamdre) on CodePen

  • Like 2
Link to comment
Share on other sites

Looks like you made a cool fork of my popcorn slider demo. Good work. 👍


Thanks for letting us know you solved the problem and for supporting the platform with your Club GreenSock membership. It's greatly appreciated. 


Happy tweening.



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