Skip to content

Commit 48d1111

Browse files
committed
Be a little less agressive with vendor prefixes
I am not quite sure which browsers you intend to support but I believe it's safe to get rid of `-khtml-` prefixes as well as `-ms-` and `-moz-` prefixes for transitions (especially since the `-ms-` one has never been used). We could even ditch `-o-` I believe, but I left it just in case. Feel free to decline if that does not suit your browser needs.
1 parent 8d9c5ad commit 48d1111

File tree

1 file changed

+3
-11
lines changed

1 file changed

+3
-11
lines changed

css/zoom.css

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@ img[data-action="zoom"] {
88
position: relative;
99
z-index: 666;
1010
-webkit-transition: all 300ms;
11-
-moz-transition: all 300ms;
12-
-ms-transition: all 300ms;
1311
-o-transition: all 300ms;
1412
transition: all 300ms;
1513
}
@@ -28,18 +26,12 @@ img.zoom-img {
2826
bottom: 0;
2927
pointer-events: none;
3028
filter: "alpha(opacity=0)";
31-
-khtml-opacity: 0;
32-
-moz-opacity: 0;
33-
opacity: 0;
29+
opacity: 0;
3430
-webkit-transition: opacity 300ms;
35-
-moz-transition: -moz-opacity 300ms;
36-
-ms-transition: opacity 300ms;
3731
-o-transition: opacity 300ms;
3832
transition: opacity 300ms;
3933
}
4034
.zoom-overlay-open .zoom-overlay {
4135
filter: "alpha(opacity=100)";
42-
-khtml-opacity: 1;
43-
-moz-opacity: 1;
44-
opacity: 1;
45-
}
36+
opacity: 1;
37+
}

0 commit comments

Comments
 (0)