1/* use a black image */
2
3/* change image color to white */
4filter: invert(100%) sepia(16%) saturate(7463%) hue-rotate(222deg) brightness(119%) contrast(115%);
5
6/* change image color to red */
7filter: invert(16%) sepia(99%) saturate(7404%) hue-rotate(4deg) brightness(95%) contrast(118%);
8
9/* change image color to green */
10filter: invert(26%) sepia(89%) saturate(1583%) hue-rotate(95deg) brightness(96%) contrast(106%);
11
12/* change image color to blue */
13filter: invert(10%) sepia(90%) saturate(5268%) hue-rotate(245deg) brightness(109%) contrast(155%);
1.box-2:before {
2 content: "";
3 display: block;
4 position: absolute;
5 top: 0;
6 bottom: 0;
7 left: 0;
8 right: 0;
9 background: rgba(125, 2, 150, 0.5);
10 transition: background .3s linear;
11}
12
13 .box-2 {
14 position: relative;
15 float: left;
16 cursor: pointer;
17}