Skip to content

Instantly share code, notes, and snippets.

@Hoffs
Created January 18, 2015 15:05
Show Gist options
  • Save Hoffs/4c76f41e6306db922d44 to your computer and use it in GitHub Desktop.
Save Hoffs/4c76f41e6306db922d44 to your computer and use it in GitHub Desktop.
Seizure Inducer
<body>
<h1 class="bam">happy birthday</h1>
<br>
<center><img src="http://media.giphy.com/media/NAYCJNIumrb6o/giphy.gif">
</body>
@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;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment