Browse Source

stop the flicker

pull/249/head
connors 11 years ago
parent
commit
6088ca23e6
  1. 5
      docs-assets/css/docs.css
  2. 6
      lib/sass/docs.scss

5
docs-assets/css/docs.css

@ -544,6 +544,11 @@ hr {
-webkit-transition: background-image 0.1s linear;
transition: background-image 0.1s linear;
}
.device:after {
content: '';
background-image: url("../img/iphone5s.png");
opacity: 0;
}
.device.device-fixed {
position: fixed;
right: auto;

6
lib/sass/docs.scss

@ -590,6 +590,12 @@ hr {
background-repeat: no-repeat;
@include transition(background-image .1s linear);
// Pre-load device backgrounds so we stop the flicker.
&:after {
content: '';
background-image: url("../img/iphone5s.png");
opacity: 0;
}
&.device-fixed {
position: fixed;
right: auto;

Loading…
Cancel
Save