Question

What is the timing method and interval that scriptaculous uses in prototype for its smooth tweening? PeriodicalExecuter?

Was it helpful?

Solution

Method: setTimeout(), setInterval()

Interval: Milliseconds

You can also adjust the frame rate that Scriptaculous uses to make animations smoother (results vary by browser and the user's machine speed unfortunately):

fps: Target this many frames per second. Default to 25. Can’t be higher than 100.

Example: new Effect.Fade('myDiv',{fps:60})

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top