Jump to content
GreenSock

gazelle

Trying to understand rotation

Go to solution Solved by Diaco,

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,

 

I just started learning GSAP and my first task is to animate an image like a hinge effect starting from the ground. I was able to get a similar effect but the image is upside down, I'm confused about rotation and would appreciate any help with a solution and what I did wrong.

 

Thanks!

 

See the Pen NGEgmq by gk (@gk) on CodePen

Link to comment
Share on other sites

  • Solution

Hi gazelle  :)

 

Unfortunately the SVG spec doesn't support 3D transforms , you can have same effect ( visually ) by this :

TweenMax.from(".ny",1,{scaleY:0,skewX:-60,transformOrigin:"center bottom",opacity:0});

pls check this out : 

See the Pen wKQpgM by MAW (@MAW) on CodePen

  • Like 4
Link to comment
Share on other sites

Thank you @Diaco! I'm going to consider using PNG to make things easier now and probably in the future.

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