Skip to content

Instantly share code, notes, and snippets.

@ivo-ivanov
Created June 22, 2020 07:52
Show Gist options
  • Save ivo-ivanov/bf7257e06f2a4767b62ec184ff7f459b to your computer and use it in GitHub Desktop.
Save ivo-ivanov/bf7257e06f2a4767b62ec184ff7f459b to your computer and use it in GitHub Desktop.
Heartbeat css animation. #css #animations
.heartbeat {
animation: heartbeat 3s infinite;
}
@keyframes heartbeat {
0% {
transform: scale(1);
}
20% {
transform: scale(1.1);
}
40% {
transform: scale(1);
}
60% {
transform: scale(1.1);
}
80% {
transform: scale(1);
}
100% {
transform: scale(1);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment