Randomblue
Randomblue

Reputation: 116323

Frame rate of jQuery animation

I know that jQuery animations have a default frame rate. However, my animations look very different from computer to computer, some are smoother than others.

Is there a way to determine the actual outputted frame rate of jQuery animations?

Upvotes: 6

Views: 5786

Answers (1)

Andrew Kozak
Andrew Kozak

Reputation: 1660

The default frame rate is 77fps, however, in different browsers, this can vary; "Chrome's fastest possible interval is about 10ms [while a]ll other browsers "sample" at about 20-30ms.". There are a lot of potential sources of animation lag from system to system and browser to browser, and there are several(1) different(2) projects(3) feeling out ways to help us develop with timing in mind. For now, you could try standardizing your frame rate using a plugin and see if that helps you time your animations more easily, or tweak it manually.

Upvotes: 6

Related Questions