Skip to content

Instantly share code, notes, and snippets.

@akanieski
Created October 25, 2013 02:19
Show Gist options
  • Save akanieski/7148526 to your computer and use it in GitHub Desktop.
Save akanieski/7148526 to your computer and use it in GitHub Desktop.
CSS3 Pulse Effect
.pulse {
-webkit-animation: pulse 1s linear infinite;
-moz-animation: pulse 1s linear infinite;
-ms-animation-name: pulse 1s linear infinite;
-o-animation-name: pulse 1s linear infinite;
animation-name: pulse 1s linear infinite;
}
@-webkit-keyframes pulse {
0% {
-webkit-transform: scale(1);
}
50% {
-webkit-transform: scale(1.1);
}
100% {
-webkit-transform: scale(1);
}
}
@-moz-keyframes pulse {
0% {
-moz-transform: scale(1);
}
50% {
-moz-transform: scale(1.1);
}
100% {
-moz-transform: scale(1);
}
}
@-ms-keyframes pulse {
0% {
-ms-transform: scale(1);
}
50% {
-ms-transform: scale(1.1);
}
100% {
-ms-transform: scale(1);
}
}
@-o-keyframes pulse {
0% {
-o-transform: scale(1);
}
50% {
-o-transform: scale(1.1);
}
100% {
-o-transform: scale(1);
}
}
@keyframes pulse {
0% {
transform: scale(1);
}
50% {
transform: scale(1.1);
}
100% {
transform: scale(1);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment