Skip to content

Instantly share code, notes, and snippets.

View dstorey's full-sized avatar

David Storey dstorey

View GitHub Profile
html:-moz-full-screen {
background: red;
}
html:-webkit-full-screen {
background: red;
}
html:-ms-fullscreen {
background: red;
if (document.exitFullscreen) {
document.exitFullscreen();
}
else if (document.webkitExitFullscreen {
document.webkitExitFullscreen();
}
else if (document.msExitFullscreen) {
document.msExitFullscreen();
}
else if (document.mozCancelFullScreen) {
@dstorey
dstorey / dabblet.css
Created July 3, 2012 06:53
set the size of the boxes and any decoration
.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);