Jump to content
Search Community

I'm having trouble to migrate from TweenLite to GSAP 3, especially with justify-content

lmuzellec test
Moderator Tag

Go to solution Solved by GreenSock,

Recommended Posts

Hello,

So I'm trying to use GSAP 3 to recreate the same grid animation as this codepen that uses TweenLite : 

See the Pen yLEaOeN by lmuzellec (@lmuzellec) on CodePen

 

But I'm having trouble with the justify-content property that seem to remove the animation, or at least make it stutter, when set to center.

I have created a button to toggle the justify-content property to show that the animation does work when the property isn't set. 

 

What I'm trying to achieve is to have the same animation on the grid while centering it horizontally.  

 

Could you please help me identify what I am doing wrong ? Or is it not possible to use animation with justify-content ? 

See the Pen ZERpbba by lmuzellec (@lmuzellec) on CodePen

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