Jump to content
Search Community

Trying to understand rotation

gazelle

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

Posted

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.

  • Solution
Posted

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
Posted

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

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