Jump to content
Search Community

GSAP .to speed control

PixeledCode test
Moderator Tag

Go to solution Solved by mvaneijgen,

Recommended Posts

  • Solution

I think the problem is with creating a `.timeline()` you are better of just using `gsap.to()` without the time line, than it will just call it instantly instead of trying to add it to the timeline.

 

`velocity` is as far as I know only something used in combination with Draggable and ScrollTrigger.

 

Also I would not put on an `ease` to make it responde instantly

 

See the Pen GRNajvx?editors=0010 by mvaneijgen (@mvaneijgen) on CodePen

 

Just a semantic question: why are you not using the `<progress>` element , seems like a perfect fit https://developer.mozilla.org/en-US/docs/Web/HTML/Element/progress

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