Skip to content

Instantly share code, notes, and snippets.

@lorenzoplanas
Created October 12, 2014 17:05
Show Gist options
  • Save lorenzoplanas/f83a82b15d2136ee7b4c to your computer and use it in GitHub Desktop.
Save lorenzoplanas/f83a82b15d2136ee7b4c to your computer and use it in GitHub Desktop.
Pulsating SVG Path
.pulsate path {
stroke: #2980b9;
-webkit-animation: pulsate 5s ease-out;
-webkit-animation-iteration-count: infinite;
-moz-animation: pulsate 5s ease-out;
-moz-animation-iteration-count: infinite;
-ms-animation: pulsate 5s ease-out;
-ms-animation-iteration-count: infinite;
animation: pulsate 5s ease-out;
animation-iteration-count: infinite;
}
@-webkit-keyframes pulsate {
0% { opacity:0.4; stroke-width: 3; }
50% { opacity:1.0; stroke-width: 5; }
100% { opacity:0.4; stroke-width: 3; }
}
@-moz-keyframes pulsate {
0% { opacity:0.4; stroke-width: 3; }
50% { opacity:1.0; stroke-width: 5; }
100% { opacity:0.4; stroke-width: 3; }
}
@-ms-keyframes pulsate {
0% { opacity:0.4; stroke-width: 3; }
50% { opacity:1.0; stroke-width: 5; }
100% { opacity:0.4; stroke-width: 3; }
}
@keyframes pulsate {
0% { opacity:0.4; stroke-width: 3; }
50% { opacity:1.0; stroke-width: 5; }
100% { opacity:0.4; stroke-width: 3; }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment