Jump to content
Search Community

Preloader

rotaercz test
Moderator Tag

Go to solution Solved by Carl,

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

  • Solution

Hi Howard,

 

I feel the GSAP version is fairly straight-forward:

 

http://codepen.io/GreenSock/pen/mJdPva?editors=001

 

Using CSS locks you into a system that is very hard to maintain and control. I think very few will dispute this.

 

Our extremely biased feelings on CSS can be found here:

http://greensock.com/transitions/

http://greensock.com/css-workflow/

 

If you just want to spin a few divs around, sure, CSS is fine. However, you are going to hit some big roadblocks if you ever need to do any of the following:

 

  • trigger another animation halfway through the sequence
  • pause the sequence
  • reverse the sequence
  • progressively increase / decrease the speed of the animation
  • add another animation directly before the sequence

 

Imagine after you built the perfect spinner using CSS (yours is quite nice btw), the client says "I want all the dots to drop down and shrink from the top of the page before the spinner starts."

 

With GSAP its a single line of code (which may may not need to be in the timeline, I chose to put it inside) http://codepen.io/GreenSock/pen/xGxVBP?editors=001

 

With css you have to build a whole new set of keyframes and then figure out how / when the spinning part is going to start.

 

Its my experience with animation that requirements always change and lots of tweaking happens along the way, so personally, I feel best with the system that affords me that type of flexibility and control. 

 

Thanks for posting the question and providing the demo.

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