Jump to content
GreenSock

Praney Behl

Differences in CSS and GSAP tranforms

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

Hi guys,

 

Just trying to achieve the CSS animation transforms with GSAP. I am getting different results while using same properties. How can I achieve results like in CSS animation? I am doing something wrong?

 

Here is the code: 

See the Pen Gbmhs by praneybehl (@praneybehl) on CodePen

 

Thank you for the help.

 

Praney

 

Link to comment
Share on other sites

Thanks Jack,

 

I do understand that it's a feature. I guess I'll just have to get a hang of it.

 

I figured that I had to add the negative z-index (-200) set in the transformOrigin properties to get similar results.

 

Praney

 

edit: Moved other question to new thread.

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