Skip to content

Instantly share code, notes, and snippets.

@drifterz28
Created November 11, 2014 23:53
Show Gist options
  • Save drifterz28/2482831b0fe9f831dcbf to your computer and use it in GitHub Desktop.
Save drifterz28/2482831b0fe9f831dcbf to your computer and use it in GitHub Desktop.
firework svg with animated css
Display the source blob
Display the rendered blob
Raw
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@-webkit-keyframes pulse {
0% {
stroke: #FFF5A5;
fill: #45CEEF;
}
25% {
stroke: #FFD4DA;
fill: #FFF5A5;
}
50% {
stroke: #99D2E4;
fill: #FFD4DA;
}
75% {
stroke: #D8CAB4;
fill: #99D2E4; }
100% {
stroke: #45CEEF;
fill: #D8CAB4;
}
}
@keyframes pulse {
0% {
stroke: #FFF5A5;
fill: #45CEEF;
}
25% {
stroke: #FFD4DA;
fill: #FFF5A5;
}
50% {
stroke: #99D2E4;
fill: #FFD4DA;
}
75% {
stroke: #D8CAB4;
fill: #99D2E4; }
100% {
stroke: #45CEEF;
fill: #D8CAB4;
}
}
.spark_1,
.spark_2,
.spark_3 {
fill: #45CEEF;
stroke: #FFF5A5;
-webkit-animation-duration: 3s;
-webkit-animation-name: pulse;
-webkit-animation-iteration-count: infinite;
animation-duration: 3s;
animation-name: pulse;
animation-iteration-count: infinite;
}
.spark_1 {
-webkit-animation-delay: 0.11s;
animation-delay: 0.11s;
}
.spark_2 {
-webkit-animation-delay: 0.21s;
animation-delay: 0.21s;
}
.spark_3 {
-webkit-animation-delay: 0.31s;
animation-delay: 0.31s;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment