Top "Requestanimationframe" questions

HTML5 window.

Controlling fps with requestAnimationFrame?

It seems like requestAnimationFrame is the de facto way to animate things now. It worked pretty well for me for …

javascript performance animation canvas requestanimationframe
$(window).scroll in vanilla JavaScript

What's the equivalent of the following in plain JS? $(window).scroll(function() { }); I'm also looking to animate scroll, e.g.: $(…

javascript scroll requestanimationframe
How to use requestAnimationFrame?

I'm new to animation, but I have recently created an animation using setTimeout. The FPS was too low, so I …

javascript animation requestanimationframe
Calculate FPS in Canvas using requestAnimationFrame

How could I calculate the FPS of a canvas game application? I've seen some examples, but none of them use …

javascript html5-canvas requestanimationframe
Why doesn't jQuery use requestAnimationFrame?

Some browsers support requestAnimationFrame, so why not use it? After all, it's been supported since Google Chrome 10. Despite that, jQuery …

jquery requestanimationframe
scroll events: requestAnimationFrame VS requestIdleCallback VS passive event listeners

As we know, it's often advised to debounce scroll listeners so that UX is better when the user is scrolling. …

javascript dom requestanimationframe requestidlecallback passive-event-listeners
Limiting framerate in Three.js to increase performance, requestAnimationFrame?

I was thinking that for some projects I do 60fps is not totally needed. I figured I could have more …

javascript html canvas three.js requestanimationframe
How can I pass argument with requestAnimationFrame?

In the main program I randomly choose an object which I'd like to animate, so I call the function with …

javascript requestanimationframe
Get frame numbers in HTML5 Video

I am trying to capture each frame number of the video however it looks like there is no way of …

javascript html video requestanimationframe popcornjs
Multiple requestAnimationFrame performance

If I’m doing multiple animations, is it OK performance-wise to add multiple requestAnimationFrame callbacks? F.ex: function anim1() { // animate …

javascript jquery performance animation requestanimationframe