Skip to content

Instantly share code, notes, and snippets.

@jimthoburn
Last active August 3, 2016 23:04
Show Gist options
  • Save jimthoburn/0e345e91d2d9404bb2061c3a44a082dd to your computer and use it in GitHub Desktop.
Save jimthoburn/0e345e91d2d9404bb2061c3a44a082dd to your computer and use it in GitHub Desktop.
Pulsing circle animation
<!doctype html>
<html lang="en" dir="ltr">
<head>
<meta charset="utf-8" />
<title></title>
<style>
@keyframes pulse {
100% {
box-shadow: 0 0 0.25em rgba(77, 85, 148, 1);
}
}
.pulse {
display: block;
width: 10px;
height: 10px;
background-color: rgb(77, 85, 148);
border-radius: 50%;
box-shadow: 0 0 0.25em rgba(77, 85, 148, 0);
animation-name: pulse;
animation-duration: 0.6s;
animation-direction: alternate-reverse;
animation-iteration-count: infinite;
animation-timing-function: linear;
animation-fill-mode: both;
}
</style>
</head>
<body>
<div class="pulse"></div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment