Skip to content

Instantly share code, notes, and snippets.

@armand1m
Created June 18, 2015 16:16
Show Gist options
  • Save armand1m/dcf7d24e0c2344d776d1 to your computer and use it in GitHub Desktop.
Save armand1m/dcf7d24e0c2344d776d1 to your computer and use it in GitHub Desktop.
Animated Pulse
@-webkit-keyframes pulse {
0 {
-webkit-transform: scale(1);
transform: scale(1);
}
50% {
-webkit-transform: scale(1.2);
transform: scale(1.2);
}
100% {
-webkit-transform: scale(1);
transform: scale(1);
}
}
@-moz-keyframes pulse {
0 {
-moz-transform: scale(1);
transform: scale(1);
}
50% {
-moz-transform: scale(1.2);
transform: scale(1.2);
}
100% {
-moz-transform: scale(1);
transform: scale(1);
}
}
@keyframes pulse {
0 {
transform: scale(1);
}
50% {
transform: scale(1.2);
}
100% {
transform: scale(1);
}
}
.animated-pulse {
animation-name: pulse;
animation-duration: 1.5s;
animation-iteration-count: infinite;
animation-timing-function: linear;
-webkit-animation-name: pulse;
-moz-animation-name: pulse;
-webkit-animation-duration: 1.5s;
-moz-animation-duration: 1.5s;
-webkit-animation-iteration-count: infinite;
-moz-animation-iteration-count: infinite;
-webkit-animation-timing-function: linear;
-moz-animation-timing-function: linear;
}
.generate-delay-classes(@i) when (@i > 0) {
.generate-delay-classes((@i - 1));
.delay-@{i} {
.animation-delay(~"@{i}s");
}
}
.generate-delay-classes(4);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment