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
/* CSS Dice: An Experiment by Jonathan Sampson - @jonathansampson */ | |
.die.one .dot { | |
box-shadow: 0 .2em 0 #FFF | |
} | |
.die.two .dot { | |
background: transparent; | |
box-shadow: -2.3em -2.3em 0 #345, | |
2.3em 2.3em 0 #345, | |
-2.3em -2.3em 0 #FFF, | |
2.3em 2.4em 0 #FFF |
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
/** | |
* Delayed Animations | |
*/ | |
@keyframes fadeToBlue { | |
50% { | |
background: blue | |
} | |
} | |
.foo { |
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
/* Make it a marquee */ | |
.marquee { | |
width: 450px; | |
margin: 0 auto; | |
overflow: hidden; | |
white-space: nowrap; | |
box-sizing: border-box; | |
animation: marquee 50s linear infinite; | |
} |
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
/** | |
* A Bandeira do Brasil | |
*/ | |
body { margin: 0 } | |
html { background: #111111 } | |
.brasil { | |
/* Adjust for larger/smaller flag */ | |
font-size: 20px; |
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
/* Repeating Lateral Text Shadows - By @LeaVerou */ | |
body { margin: 0 } | |
h1 { | |
color: #3D6AA2; | |
position: relative; | |
font: bold 2em/1em 'Segoe UI'; | |
} |
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
/* | |
(function () { | |
var prop, props = []; | |
for ( prop in console ) { | |
props.push({ | |
name: prop, | |
type: Object.prototype.toString.call( console[ prop ] ) |
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
var output = (function ( object ) { | |
"use strict"; | |
function getProperties ( object ) { | |
return object ? Object.getOwnPropertyNames( object ) | |
.concat( getProperties( Object.getPrototypeOf( object ) ) ) : [] ; | |
} | |
function getUnique ( array ) { |
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
/*global document, prompt */ | |
(function( global ) { | |
"use strict"; | |
var response = { | |
browser: { | |
name: prompt( "Browser Name? (Chrome, IExplorer, etc)" ), | |
version: prompt( "Browser Version? (34, 11, etc)" ) | |
}, |
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
// based on https://snipt.net/gregwhitworth/w3c-keyword-colors-90c153dd/ | |
// adds alphabetical index, hex, and rgb values | |
var colors = { | |
"a": [ | |
[ | |
"aliceblue", | |
"#F0F8FF", | |
"rgb(240, 248, 255)" | |
], | |
[ |
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
(function () { | |
/* Internet Explorer 11 may have trouble retrieving the number type | |
of an input value. This short script performs a quick test, and repairs | |
the functionality if necessary. Load before attempting to use the | |
`valueAsNumber` property on input elements. */ | |
"use strict"; | |
var a = document.createElement( "input" ); |
OlderNewer