Jump to content
Search Community

How to animate css multiple value but different ease?

singlexyz test
Moderator Tag

Recommended Posts

css clip-path property has multiple values in a declaration.

 

.el { clip-path: inset(10% 20%); }

 

like above, how to animate 10%part and 20% part in  different ease or duration ?

 

just like 10% use 1s duration, and 20% use 2s.

 

I could and a parent element, then animate with child same time.

or animate two object then update the clip-path.

 

but has any function built-in can do that? 

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