Skip to content

Instantly share code, notes, and snippets.

@chibaye
Forked from lorenzoplanas/pulsate_path.css
Created May 7, 2019 18:59
Show Gist options
  • Save chibaye/d7347ebf716e9513c8e4f776b50cd369 to your computer and use it in GitHub Desktop.
Save chibaye/d7347ebf716e9513c8e4f776b50cd369 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