Permalink
Browse files

Hide the slides before the JS is loaded to avoid page jumping

  • Loading branch information...
1 parent ba06113 commit ac0877c7a54e3e796c4223f3522902c38db3b845 @jayj committed Oct 13, 2012
Showing with 10 additions and 0 deletions.
  1. +4 −0 less/slider.less
  2. +6 −0 style.dev.css
View
@@ -25,6 +25,10 @@
/* Slider content */
.slide {
+ /* Hide the slides before the JS is loaded to avoid page jumping */
+ display: none;
+ -webkit-backface-visibility: hidden;
+
.thumbnail,
.slider-video {
float: left;
View
@@ -1248,6 +1248,12 @@ table caption {
max-height: 300px;
}
/* Slider content */
+.slide {
+ /* Hide the slides before the JS is loaded to avoid page jumping */
+
+ display: none;
+ -webkit-backface-visibility: hidden;
+}
.slide .thumbnail,
.slide .slider-video {
float: left;

0 comments on commit ac0877c

Please sign in to comment.