Jump to content
Search Community

Clip path animation

AntonioNB4 test
Moderator Tag

Go to solution Solved by Rodrigo,

Recommended Posts

Hi,

 

There is a known issue with ClipPath inset in a few browsers. They report an incorrect set of values (one value of the inset is not returned so GSAP by default uses 0 in that one) which leads to unexpected results. This has nothing to do with GSAP, just a browser thing.

 

Is more reliable to use polygon instead:

See the Pen oNmJvRv by GreenSock (@GreenSock) on CodePen

 

Hopefully this helps.

Happy Tweening!

Link to comment
Share on other sites

16 minutes ago, Rodrigo said:

Hi,

 

There is a known issue with ClipPath inset in a few browsers. They report an incorrect set of values (one value of the inset is not returned so GSAP by default uses 0 in that one) which leads to unexpected results. This has nothing to do with GSAP, just a browser thing.

 

Is more reliable to use polygon instead:

 

 

 

Hopefully this helps.

Happy Tweening!

@Rodrigo OK now it's clear. Instead, if I wanted to move the mask from the bottom to the middle and then activate the clip-path  polygon that expand himself?

Link to comment
Share on other sites

9 minutes ago, Rodrigo said:

Hi,

 

I'm not sure I follow 100% what you mean, maybe something like this:

 

 

 

If not, please be super specific about what you're trying to do.

 

Hopefully this helps.

Happy Tweening!

 

@Rodrigo

See the Pen jOdXOKQ by Antonio-Nocella (@Antonio-Nocella) on CodePen


ok rodrigo forgive me. I will try to be precise. If you see the video I attached. When the clipath moves upward on the Y axis, the video inside it looks free from the movement of the container itself. As if it were in absolute position.  I need something like that in the video.

 

 

 

Link to comment
Share on other sites

  • Solution
3 hours ago, AntonioNB4 said:

If you see the video I attached. When the clipath moves upward on the Y axis, the video inside it looks free from the movement of the container itself. As if it were in absolute position.  I need something like that in the video.

Sorry still don't understand, isn't that exactly what the demo is doing? (I updated it in order to trigger things after the video is loaded):

See the Pen ExrGxwY by GreenSock (@GreenSock) on CodePen

 

The video element never moves is the clip path that is moving all the time, just like in the video in your first post on the thread.

 

Happy Tweening!

  • Like 1
Link to comment
Share on other sites

17 hours ago, Rodrigo said:

Sorry still don't understand, isn't that exactly what the demo is doing? (I updated it in order to trigger things after the video is loaded):

 

 

 

The video element never moves is the clip path that is moving all the time, just like in the video in your first post on the thread.

 

Happy Tweening!

Yes ! Now i see it . Thank you for help. :)

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...