With CSS3, we can apply filters to our HTML elements in order to make them more interactive. There is no reqiurement of any designing software like photoshop anymore for making such effects.
Below are some filter examples:-
Blur:-
value from 1px to 10px
-webkit-filter: blur(10px);
Grayscale:-
value from 0.1 to 1
-webkit-filter: grayscale(1);
Drop-shadow:-
first value is for horizontal, second for vertical, third for blur and fourth for color
-webkit-filter: drop-shadow(26px 26px 20px black);
Sepia:-
value from 0.1 to 1
-webkit-filter: sepia(1);
Brightness:-
value from 0.1 to 10.
-webkit-filter: brightness(10);
Contrast:-
value from 0.1 to 10.
-webkit-filter: contrast(1.9);
Hue-rotate :-
value from 30deg to 360deg.
-webkit-filter: hue-rotate(60deg);
Invert:-
value from 30deg to 360deg.
-webkit-filter: invert(0.3);
Saturate:-
value from 0.1 to 10.
-webkit-filter: saturate(1.9);
Opacity:-
value from 0.1 to 10.
-webkit-filter: opacity(0.5);
0 Comment(s)