I'm facing a challenge with a specific scenario: I have an element that utilizes a clip path to hide its content. This clip path is meant for an animation later on, where the content will be revealed. However, there is another element nested inside that has its own animation, but it's not being concealed by the clip path.
You can view the issue here: https://jsfiddle.net/wne2z1m4/
In essence,
-webkit-clip-path:inset(-10% 50% 98% 50%);
and animation:animation 1s linear 0s infinite;
don't seem to cooperate well together. If you turn off the animation on the button element, you'll notice it gets masked by the surrounding container.
Does anyone have any insights on how to maintain the animation on the button element while ensuring it remains masked?
Thank you!