Jump to content


Perspective on SVG transform

Recommended Posts

Hi all
I am developing an animation software.
To deploy an animation also to the web I wrote a plugin which renders SVG and uses GSAP to animate values.
Btw...you greensocks are doing a great job <3
Now I added the possibility to add 3d transformations but I get stuck with the perspective in rotationx/y.
Is it possible to have a perspective for SVG at all?
The output should look like the screenshot.


See the Pen ReovMj by Artanidos (@Artanidos) on CodePen

Link to comment
Share on other sites

Firefox is the only browser that supports 3d for SVG, but it's very limited. You can wrap your SVG in a div, and animate the div instead.

  • Like 5
Link to comment
Share on other sites

Thank you very much OSUblake.
I was able to reproduce the same output in HTML.
I had to stack a couple of divs in order to get the same result.

A bit tricky :-)

See the Pen gBgYLG by Artanidos (@Artanidos) on CodePen


  • Like 1
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.