Skip to content

Instantly share code, notes, and snippets.

@fousa
Created July 12, 2012 14:22
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fousa/3098418 to your computer and use it in GitHub Desktop.
Save fousa/3098418 to your computer and use it in GitHub Desktop.
CSS3 Pulsating Ring
.ring {
border: 3px solid #999;
-webkit-border-radius: 30px;
height: 40px;
width: 40px;
position: fixed;
top: 45%;
left: 45%;
animation: pulse 1s ease-out infinite;
-webkit-animation: pulse 1s ease-out infinite;
-moz-animation: pulse 1s ease-out infinite;
opacity: 0.0
}
@keyframes pulse {
0% { transform: scale(0); opacity: 0.0; }
50% { opacity: 1.0; }
100% { transform: scale(1.2); opacity: 0.0; }
}
@-webkit-keyframes pulse {
0% { -webkit-transform: scale(0); opacity: 0.0; }
50% { opacity: 1.0; }
100% { -webkit-transform: scale(1.2); opacity: 0.0; }
}
@-moz-keyframes pulse {
0% { -moz-transform: scale(0); opacity: 0.0; }
50% { opacity: 1.0; }
100% { -moz-transform: scale(1.2); opacity: 0.0; }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment