Jump to content
GreenSock

Search In
  • More options...
Find results that contain...
Find results in...
robbue

Non-completing tween

Recommended Posts

I'm making this thing:

See the Pen 645dff0dd2be4811590671525e340493 by robbue (@robbue) on CodePen

 

But I'm having some problems with the tweens not being completed, resulting in this (MBP Retina Chrome 34):

post-13854-0-86627800-1397509024_thumb.png

 

Why isn't every tween completed? It's stops before reaching a value of 1/0. Is there a better way to do this?

 

 

Link to comment
Share on other sites

Looks like the rotation is interfering with the style parsing for the className tween. If you separate the className to its own tween for ".square-3 .square-inner, .square-7 .square-inner, .square-11 .square-inner" then the rotation is kept separate and works as expected:

.to(..., transitionTime, { className: '+=shadow', ease: easeEffect }, "tl2")
.to(..., transitionTime, { rotationY: -degrees, ease: easeEffect }, "tl2")

Also your screenshots aren't accessible, but I'm assuming this is what you were talking about.

  • Like 1
Link to comment
Share on other sites

Thanks jamiejefferson :) The class was a CSS animation, but I'm now animating it with GSAP and it works fine. Also experienced some cracks at some resolutions, fixed it with a width: 101% hack and some other stuff.

 

Updated the post with image for future reference.

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.
×