Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

clip-path #177

Open
gamanox opened this issue Dec 3, 2013 · 1 comment
Open

clip-path #177

gamanox opened this issue Dec 3, 2013 · 1 comment

Comments

@gamanox
Copy link

gamanox commented Dec 3, 2013

is there a way to animate a clip-path, this is the code

-webkit-clip-path: circle(90%, 90%, 1800px)

thanks a lot

@pingram3541
Copy link

Did you try something like this (animates from the center out) - give your element the initial css property

-webkit-clip-path: circle(50%, 50%, 0px);

then

$('#item').transition({ "-webkit-clip-path": "circle(90%, 90%, 1800px)" },1000, ease-in-out); //1 sec long

or force css rule at beginning with no delay/duration

$('#item').transition({ "-webkit-clip-path": "circle(50%, 50%, 0px)", duration: 0 },{ "-webkit-clip-path": "circle(90%, 90%, 1800px)", duration: 1000 });

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants