To create text that always fill the viewport, no matter what ratio. This is just a concept and not very well tested ;-)
A Pen by CrocoDillon on CodePen.
To create text that always fill the viewport, no matter what ratio. This is just a concept and not very well tested ;-)
A Pen by CrocoDillon on CodePen.
Writeup on CSS-Tricks : http://css-tricks.com/dont-overthink-it-grids/
Forked from Chris Coyier's Pen Don't Overthink It Grids.
A Pen by Stefano Guglielmi on CodePen.
Pure CSS. Uses transform-style: preserve-3d
, so it won't work in IE up to and including 11. Should work in the new Edge browser, but not actually tested. Tested & works for the most part in Firefox 39, 42 (nightly), Chrome 44, 46 (canary)/ Opera 31 beta on Windows 8. Firefox has 3D ordering issues, Chrome shows lines between parts. Update: Safari works the same as Chrome, while Edge seems to have a problem when combining into cubes (same as Firefox?) - see replies here. Inspiration:
Forked from Ana Tudor's Pen 4 cubes → 12 small pyramids → 3 big pyramids.
A Pen by Stefano Guglielmi on CodePen.
h1 { | |
font-size: 72px; | |
background: -webkit-linear-gradient(#eee, #333); | |
-webkit-background-clip: text; | |
-webkit-text-fill-color: transparent; | |
} |
A Pen by Fabrizio Bianchi on CodePen.
/* | |
* Normalized hide address bar for iOS & Android | |
* (c) Scott Jehl, scottjehl.com | |
* MIT License | |
*/ | |
(function( win ){ | |
var doc = win.document; | |
// If there's a hash, or addEventListener is undefined, stop here | |
if( !location.hash && win.addEventListener ){ |
/** | |
* Light loader | |
*/ | |
* { | |
margin: 0; | |
padding: 0; | |
} | |
html { |
h1 { | |
text-shadow: 0 1px 0 #ccc, | |
0 2px 0 #c9c9c9, | |
0 3px 0 #bbb, | |
0 4px 0 #b9b9b9, | |
0 5px 0 #aaa, | |
0 6px 1px rgba(0,0,0,.1), | |
0 0 5px rgba(0,0,0,.1), | |
0 1px 3px rgba(0,0,0,.3), | |
0 3px 5px rgba(0,0,0,.2), |
.nir { | |
height:100px; /* height of replacement image */ | |
width:400px; /* width of replacement image */ | |
padding:0; | |
margin:0; | |
overflow:hidden; | |
} | |
.nir:before { | |
content:url(image.gif); |