ClipPath can display the part you want!

Profile picture of MikeHe-creator

Draft

Nov 13, 2023

·

1 min read

·

82 Views

Attribute definition and usage instructions

The clip-path attribute uses clipping to create a displayable area of an element. Parts within the area are displayed, and those outside the area are hidden. You can specify some specific shapes.

Note: The clip-path attribute replaces the deprecated clip attribute.

Default values:none

Inherit:No

Animation: support.

Version:CSS Blocking Module Level 1

JavaScript syntax: obj.style.clipPath="circle(50%)"(example)

grammar

clip: clip-source|basic-shape|margin-box|border-box|padding-box|content-box|fill-box|stroke-box|view-box|none|initial|inherit;



Profile picture of MikeHe-creator

Written By

Who-am-I?

No bio found