Created — forked from LeaVerou/dabblet.css

Embed URL

HTTPS clone URL

SSH clone URL

You can clone with HTTPS or SSH.

Download Gist

Loading animation like the one seen on http://www.freeger.com/projects/contextad/ with CSS

View dabblet.css
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
/**
* Loading animation like the one seen on http://www.freeger.com/projects/contextad/ with CSS
* Caveat: Not DRY. The content needs to be repeated in a data- attribute (or directly in the CSS).
* Another good idea from @LeaVerou.
*/
 
body {
background: #ccc51c;
min-height: 100%;
}
 
h1 {
position: absolute;
left: 50%;
margin-left: -1.9em;
color: hsla(0,0%,100%,.3);
font: 900 800% Baskerville, 'Palatino Linotype', Palatino, serif;
}
 
@keyframes loading {
from { max-width: 0; }
}
 
h1:before {
content: attr(data-content);
position: absolute;
overflow: hidden;
max-width: 4em;
color: white;
animation: loading 10s linear;
}
View dabblet.css
1
<h1 data-content="Contad">Contad</h1>
View dabblet.css
1
{"view":"split","fontsize":"100","seethrough":"","prefixfree":"1","page":"all"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.