This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
html:-moz-full-screen { | |
background: red; | |
} | |
html:-webkit-full-screen { | |
background: red; | |
} | |
html:-ms-fullscreen { | |
background: red; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (document.exitFullscreen) { | |
document.exitFullscreen(); | |
} | |
else if (document.webkitExitFullscreen { | |
document.webkitExitFullscreen(); | |
} | |
else if (document.msExitFullscreen) { | |
document.msExitFullscreen(); | |
} | |
else if (document.mozCancelFullScreen) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.slider { | |
/* set initial width */ | |
width: 520px; | |
/* hide the content that overflows (to allow second box to show through) */ | |
overflow: hidden; | |
display: inline-block; | |
/* skew container so that it has angled edge, and set up transition */ | |
transform: skewX(-20deg); |