Skip to content

Instantly share code, notes, and snippets.

@CodeMyUI
Created November 14, 2016 11:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save CodeMyUI/266bd662467920a9ba06039f8299e42e to your computer and use it in GitHub Desktop.
Save CodeMyUI/266bd662467920a9ba06039f8299e42e to your computer and use it in GitHub Desktop.
Woohooo!
<h1>
<span>w</span>
<span>o</span>
<span>o</span>
<span>h</span>
<span>o</span>
<span>o</span>
<span>o</span>
<span>!</span>
</h1>
html, body {
width: 100%;
height: 100%;
background: #76b852;
background: -webkit-linear-gradient(to left, #76b852 , #8DC26F);
background: linear-gradient(to left, #76b852 , #8DC26F);
overflow: hidden;
-webkit-font-smoothing: antialiased;
display: flex;
justify-content: center;
align-items: center;
}
h1 {
height: 100px;
}
h1 span {
position: relative;
top: 20px;
display: inline-block;
animation: bounce .3s ease infinite alternate;
font-family: 'Titan One', cursive;
font-size: 80px;
color: #FFF;
text-shadow: 0 1px 0 #CCC,
0 2px 0 #CCC,
0 3px 0 #CCC,
0 4px 0 #CCC,
0 5px 0 #CCC,
0 6px 0 transparent,
0 7px 0 transparent,
0 8px 0 transparent,
0 9px 0 transparent,
0 10px 10px rgba(0, 0, 0, .4);
}
h1 span:nth-child(2) { animation-delay: .1s; }
h1 span:nth-child(3) { animation-delay: .2s; }
h1 span:nth-child(4) { animation-delay: .3s; }
h1 span:nth-child(5) { animation-delay: .4s; }
h1 span:nth-child(6) { animation-delay: .5s; }
h1 span:nth-child(7) { animation-delay: .6s; }
h1 span:nth-child(8) { animation-delay: .7s; }
@keyframes bounce {
100% {
top: -20px;
text-shadow: 0 1px 0 #CCC,
0 2px 0 #CCC,
0 3px 0 #CCC,
0 4px 0 #CCC,
0 5px 0 #CCC,
0 6px 0 #CCC,
0 7px 0 #CCC,
0 8px 0 #CCC,
0 9px 0 #CCC,
0 50px 25px rgba(0, 0, 0, .2);
}
}
<link href="http://fonts.googleapis.com/css?family=Titan+One" rel="stylesheet" />
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment