Jump to content
Search Community

Scaling an SVG clip path

BrianCross test
Moderator Tag

Go to solution Solved by PointC,

Recommended Posts

Hi everyone,

 

I'm having an issue with animating an SVG clip path. In this pen, if you click anywhere in the document, the clip path will scaleY from 0 to 1, from top to bottom, revealing the image. Adding transform-origin: "bottom"; to the CSS should reverse the direction of the transform. Instead it looks like it's scaling up off the top edge of the screen. If I manually change scaleY in the browser dev tools it does correctly scale up from the bottom and reveals the image. I'm not sure what I'm doing wrong with the tween to cause this behaviour, so any help is appreciated.

 

Thanks!

 

Brian

See the Pen 6f7a4da06dcf5f9d1bb7a9f1ac8433da by BrianCross (@BrianCross) 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...