Skip to content
This repository was archived by the owner on Feb 25, 2018. It is now read-only.

Commit d648103

Browse files
committed
Force to use GPU acceleration on transitions
This fixes #12 as far as possible.
1 parent 1e7f3de commit d648103

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

index.html

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,14 @@
8080
-ms-transform: translate3d(0, 0, 0);
8181
transform: translate3d(0, 0, 0);
8282

83+
-webkit-backface-visibility: hidden;
84+
-moz-backface-visibility: hidden;
85+
backface-visibility: hidden;
86+
87+
-webkit-perspective: 1000;
88+
-moz-perspective: 1000;
89+
perspective: 1000;
90+
8391
/* Transition mode: cover-flow;
8492
doesn't work with position: absolute on li's */
8593
-webkit-transition: all 1500ms ease-in-out;
@@ -128,8 +136,6 @@
128136
height: 1rem;
129137
left: 47.5%;
130138
bottom: 1rem;
131-
132-
-webkit-transform: translateZ(0);
133139
}
134140

135141
.slider-wrapper > .slider--bullets > li {
@@ -155,8 +161,6 @@
155161
text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.25);
156162

157163
color: rgba(255, 255, 255, 0.65);
158-
159-
-webkit-transform: translateZ(0);
160164
}
161165

162166
.slider-wrapper > .slider--bullets > li > a.active:before {

0 commit comments

Comments
 (0)