clp
クリッピングパスを設定します。傾斜や矢印などの簡易な形状のクリッピングパスを簡単に作成できます。
Params
c
clip-path [chevron]
Keyword
-
lleft
-
rright
-
ttop
-
bbottom
t
clip-path [triangle]
Keyword
-
lleft
-
rright
-
ttop
-
bbottom
s
clip-path [slope]
i
clip-path [inset]
scss
@import 'catpow';
.chevron{
@include clp((c:l 10%));
}
@import 'catpow'; .chevron{ @include clp((c:l 10%)); }
css
.chevron {
clip-path: polygon(0% 50%, calc(100% - 10%) 0%, 100% 0%, 10% 50%, 100% 100%, calc(100% - 10%) 100%);
}
.chevron { clip-path: polygon(0% 50%, calc(100% - 10%) 0%, 100% 0%, 10% 50%, 100% 100%, calc(100% - 10%) 100%); }