CSS Functions Examples
CSS Functions are used to achieve certain values for specific effects and styles.Common CSS functions:
- Color - rgb(), rgba(), hsl(), hsla()
- Mathematical - calc(), min(), max()
- Transformation - rotate(), scale(), translate(), skew(), matrix()
- Gradient - linear-gradient(), radial-gradient()
- Image - url(), image()
- Filter - blur(), contrast(), invert(), saturate(), sepia() etc
- Color Manipulation - lighten(), darken(), alpha(), desaturate() etc
counters()
Enables nested counters. I was always wondering how to create nested ul/ol as validation doesn't allow ol/ul nested in another ul/ol.
counters()blur()
blur() is used to blur the image.
blur()skew()
skew() transforms elements on the 2D plane.
skew()conic-gradient()
conic-gradient() creates gradients with color transitions rotated around a center point.
conic-gradient()