Jump to content


Porting cool animation into HTML5

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



One of my blog readers recently asked me about this animation and how we could achieve this without flash.




I have a gut feeling that this can be done with GSAP, but haven't really put anything into action yet.


How do you think it could be done? Would you use Canvas or simple HTML5? Would some CSS3 be needed or we can do everything with GSAP?


Let me know what you think.

Link to comment
Share on other sites

Hi Michael,


That's a good one and you're right, it can be done with GSAP. Take a look at this codepen of the GreenSock collection:


See the Pen rjdkK?editors=001 by GreenSock (@GreenSock) on CodePen


Now this one won't work in IE10-11, because of the preserve3D value in transform-style. But I'm sure that with some extra code that could be supported for IE.


Finally if you add Draggable and ThrowProps to the mix that one would look very nice and smooth.


Happy Tweening!!

Link to comment
Share on other sites

Yes I see. that is really cool. However since the animation I posted was rather extensive would we fall under some html5 limitation or performance drop?

Link to comment
Share on other sites

It would be tough to give an accurate answer without testing. 3D stuff typically runs quite well due to hardware acceleration. I'd guess with lots of experimenting it would be possible to re-create that using GSAP with admirable performance.

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.