Can I apply a CSS transition to the overflow property?

后端 未结 5 1883
礼貌的吻别
礼貌的吻别 2020-11-28 14:04

I\'m trying to set a transition-delay to the overflow property of body when a div is clicked by adding a class to the

5条回答
  •  清酒与你
    2020-11-28 14:51

    In case someone is looking at the answer, like I was, for a way to animate the cropping of an element which requires overflowing - here is the solution that worked for me: the clip-path css property which is animatable and very versatile.

    Here is a cool tool to play around with it to get the proper start / end values: https://bennettfeely.com/clippy/.

提交回复
热议问题