Jump to content
Search Community

Simple 3d rotate on SVG paths not working. Please help!

randometc 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

I’m trying to do a simple 3D animation of some letters within an SVG. I can do a 2D animation so I know my selectors are correct, but cannot do the not 3D version. I want the letters to simply rotate 180 degrees horizontally once.

 

The letters themselves are path elements within the SVG

 

I set the perspective on the container, in this case the SVG itself and then set transformStyle:"preserve-3d" on the letters, in this case the individual paths. 

 

Any help would be tremendously appreciated. Thank you, this is my first post!

See the Pen rKvEge by randometc (@randometc) on CodePen

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