AKA: Blink recreation
Forked from Ted Waller's Pen Seizure Inducer.
Forked from Captain Anonymous's Pen Seizure Inducer.
| <body> | |
| <h1 class="bam">happy birthday</h1> | |
| <br> | |
| <center><img src="http://media.giphy.com/media/NAYCJNIumrb6o/giphy.gif"> | |
| </body> |
AKA: Blink recreation
Forked from Ted Waller's Pen Seizure Inducer.
Forked from Captain Anonymous's Pen Seizure Inducer.
| @function textshadow($length:100,$color:green){ | |
| $shadow:''; | |
| $i: 0; | |
| @for $i from 1 through $length{ | |
| $i: $i + 1; | |
| $shadow: $shadow + $i+px + ' ' + $i+px + ' ' + adjust-hue($color,$i); | |
| @if $i <= $length{ | |
| $shadow: $shadow + ','; | |
| } | |
| } | |
| @return unquote($shadow); | |
| } | |
| @import url('http://fonts.googleapis.com/css?family=Roboto+Condensed:400,700'); | |
| .bam{ | |
| margin:auto; | |
| color:white; | |
| text-shadow:textshadow(50); | |
| font:normal 700 50vmin/1em 'Roboto Condensed' sans-serif; | |
| text-align:center; | |
| text-transform:uppercase; | |
| animation:shadow .15s infinite alternate ease-in-out; | |
| } | |
| @keyframes blinking { | |
| 0% { background: red; } | |
| 25% {background: orange;}; | |
| 50% { background: yellow; } | |
| 75% {background: green;} | |
| 100% { background: blue; } | |
| } | |
| body { | |
| background: red; | |
| animation: blinking 0.2s 0s infinite alternate none; | |
| } |