Skip to content

Instantly share code, notes, and snippets.

@dethbiscuit
Created July 5, 2018 05:56
Show Gist options
  • Save dethbiscuit/59cbaf1181f22068843f353d3edbb26c to your computer and use it in GitHub Desktop.
Save dethbiscuit/59cbaf1181f22068843f353d3edbb26c to your computer and use it in GitHub Desktop.
[CSS] Basic animation
body
{
font-family: sans-serif;
color: #eee;
background-color: #222;
}
a
{
color: #ff9;
}
div
{
width: 8em;
font-weight: bold;
text-align: center;
padding: 0.5em 0;
margin: 50px auto;
color: #fff;
background-color: #00c;
border-radius: 3px;
-webkit-animation: glow 3s ease-in-out infinite;
animation: glow 3s ease-in-out infinite;
}
@-webkit-keyframes glow
{
50% { box-shadow: 0 0 20px #aaf; }
}
@keyframes glow
{
50% { box-shadow: 0 0 20px #aaf; }
}
<div>Animation</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment