Jump to content
Search Community

RotateX and rotate center in perspective

iroller test
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,

 

Could someone help me to make the fan rotating in perspective? I can make rotation, I can make perspective, but I can't make it rotate in perspective. I thought preserve-3d would help, but looks like I'm missing something.

 

This one is closer: 

See the Pen qddLjL by iroller (@iroller) on CodePen

but still not what I need

See the Pen OVVrpy by iroller (@iroller) on CodePen

Link to comment
Share on other sites

Glad you got what you are looking for.

 

The official SVG spec doesn't actually support 3D transforms at all, so I wouldn't recommend applying them. Some browsers have partial support, but I really wouldn't count on it. This isn't a GSAP limitation - it's simply a browser/spec issue. 

  • Like 1
Link to comment
Share on other sites

Glad you got what you are looking for.

 

The official SVG spec doesn't actually support 3D transforms at all, so I wouldn't recommend applying them. Some browsers have partial support, but I really wouldn't count on it. This isn't a GSAP limitation - it's simply a browser/spec issue. 

 

Yeah thanks. It's more about experimenting right now.

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