question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Control speed of animation

See original GitHub issue

Is there a way to control the speed of the animation? Specifically using the snapTo method.

(Awesome, awesome library!)

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:2
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

5reactions
stipsancommented, Feb 3, 2021

@simonrelet yes that is the idea. The reason I’ve held off on it though is that these options are different in the upcoming version of react-spring, v9. I could compromise on using an unstable_ prefix on this prop/option while we’re on v8. If I add it now understand that these options will be a “use at your own risk” kind of deal.

4reactions
simonreletcommented, Feb 3, 2021

Hello there! @stipsan Huge thanks for the library 🙏

Would it be conceivable to also have an API to set the duration/spring config at the component level? ref.current.snapTo() could “use it” by default and override it if a config is passed as parameter.

What do you think?

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Control Speed of Your Animation- FPS and Frame ...
You can control the animation speed by repeating the frames. The repeated frames will last longer and slow down the motion. You can...
Read more >
Controlling animation speed and repetition
Controlling animation speed and repetition · In the prompt area, click Animation Options; and click the Player tab in the dialog box that...
Read more >
Apply and control speed changes in After Effects
Learn how to control speed changes in Adobe After Effects using several different methods to achieve smooth and precise results.
Read more >
Increasing or decreasing the speed of an animation—ArcMap
You can increase or decrease the speed of an entire animation by altering the animation duration on the Animation Controls dialog box. Setting...
Read more >
Scripting API: Animator.speed - Unity - Manual
speed to manipulate the playback speed of the Animator. Any animations currently being played by the Animator are slowed down or sped up...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found