Jump to content
Search Community

Timeline: force3D on entire Timeline?

acidking test
Moderator Tag

Warning: Please note

This thread was started before GSAP 3 was released. Some information, especially the syntax, may be out of date for GSAP 3. Please see the GSAP 3 migration guide and release notes for more information about how to update the code to GSAP 3's syntax. 

Recommended Posts


We caution against using force3D in excess as it can actually degrade performance if over-used. 


Why does it degrade performance? I thought setting force3D to true actually improves it? When I tried it I checked the FPS and it seemed higher, while without it FPS dropped.


Thanks Jack, I'll try that.

Link to comment
Share on other sites

The performance degradation can be apparent when too many elements are rendered in 3D. It actually takes some time to offload these elements to the GPU and create the layers they go on. There is also a risk of running out of GPU memory.


Read this article: http://css-tricks.com/myth-busting-css-animations-vs-javascript/ as it goes into further detail. This problem effects both CSS Animations and JS ones. 


If you use the speed test demo in the article and ask Zepto to animate a few hundred elements you will notice a few seconds of lag before the star field is rendered.



If you are animating just a handful of elements, you will probably be just fine.

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