A CSS3 function can be used as a value for different CSS3 properties. There are many CSS3 functions available and they are very useful in making best web page desing. CSS3 transform property use many function i.e. scale(), rotate(), skew() etc. translate() function can be used to move an element.
CSS3 Functions are used with many CSS3 properties. Some commonly used CSS3 Functions are rgb(), rgba(), hsl(), blur(), etc.
<style>
/*rgb() function*/
color:rgb(0,0,0);
</style>
This function {rgb(0,0,0)} returns us black color
<style>
.anchor{ color:rgb(0,0,0); }
a[href]::after{
content:attr(href);
}
</style>
<a href="https://www.tdbschool.com">
www.tdbschool.com</a>
<html>
<head>
<!--Internal Style Sheet-->
<style>
/*attr() function*/
a[href]::after{
content:attr(href);
}
</style>
</head>
<!--body-->
<body>
<a class="anchor" href="https://www.tdbschool.com">
Website Url:
</a>
</body>
</html>
Some Other Important CSS3 functions
<style>
blur();
brightness();
calc();
circle();
contrast();
counter();
counters();
cubic-bezier();
drop-shadow();
ellipse();
grayscale();
hsl();
hsla();
hue-rotate();
hwb();
image();
inset();
invert();
linear-gradient();
matrix();
matrix3d();
opacity();
perspective();
polygon();
radial-gradient();
repeating-linear-gradient();
repeating-radial-gradient();
rgba();
rotate();
rotate3d();
rotateX();
rotateY();
rotateZ();
saturate();
sepia();
scale();
scale3d();
scaleX();
scaleY();
scaleZ();
skew();
skewX();
skewY();
symbols();
translate();
translate3d();
translateX();
translateY();
translateZ();
url();
</style>