Jump to content
Search Community

CSS transform

benoit test
Moderator Tag

Recommended Posts

Hey benoit,

 

This is because of 1) some differing properties and 2) how GSAP standardizes the order in which transforms are applied. Unlike CSS which can apply them in any order, GSAP uses a standard order which is a good thing! See this post for more info:

 

As for 1), you should use GSAP's transformPerspective property to set transform: perspective(). rotateZ was also not supported (rotation, rotate, and rotationZ all worked) but we will include it in the next release (3.1).

 

Knowing that, you just have to play with the values to set it up in a way that you want. I did a quick pass at setting it up but you can further make it look more similar if need be:

See the Pen vYEbrWd?editors=0010 by GreenSock (@GreenSock) on CodePen

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