Jump to content
Search Community

Simple square SVG mask centred

lister110 test
Moderator Tag

Recommended Posts

Hi everyone, can can someone please help.

 

I'm playing around with a SVG mask (first try with CSS too, so please bear with me). I have taken an existing round mask/animation previously shown on codepen and have chosen to make it square. But at the moment the animation seems to animate top left, I'd like this to start from the centre.

I have tried to playing around with the 'transformOrigin' but it doesn't seem to change, what am I doing wrong?

 

thanks in advanced.

See the Pen WNEqMZW by velvetsoup (@velvetsoup) 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...