按照 winter 老师「知识完备性」的思路,尝试整理了一下 CSS 函数。
-
Common CSS Functions
-
url()
-
attr()
-
calc()
-
lang()
-
:not()
-
-
CSS Custom Properties
var()
-
Color Functions
-
rgb()
andrgba()
-
hsl()
andhsla()
-
-
Pseudo Class Selector Functions
-
:nth-child()
-
:nth-last-child()
-
:nth-of-type()
-
:nth-last-of-type()
-
-
Animation Functions
-
cubic-bezier()
-
path()
-
steps()
-
-
Sizing & Scaling Functions
-
scaleX()
,scaleY()
,scaleZ()
,scale3d()
, andscale()
-
translateX()
,translateY()
,translateZ()
,translate3d()
, andtranslate()
-
perspective()
-
rotateX()
,rotateY()
,rotateZ()
,rotate3d()
, androtate()
-
skewX()
,skewY()
, andskew()
-
-
Filter Functions
-
brightness()
-
blur()
-
contrast()
-
grayscale()
-
invert()
-
opacity()
-
saturate()
-
sepia()
-
drop-shadow()
-
hue-rotate()
-
SVG filters
-
-
Gradient Functions
-
linear-gradient()
andrepeating-linear-gradient()
-
radial-gradient()
andrepeating-radial-gradient()
-
conic-gradient()
and `repeating-conical-gradi
-
-
Gradient Functions
-
linear-gradient()
andrepeating-linear-gradient()
-
radial-gradient()
andrepeating-radial-gradient()
-
conic-gradient()
andrepeating-conical-gradient
-
-
Grid Functions
-
fit-content()
-
minmax()
-
repeat()
-
-
Shape Functions
-
circle()
-
ellipse()
-
polygon()
-
inset()
-
-
Miscellaneous Functions
-
element()
-
image-set()
-
::slotted()
-