Skip to content

Instantly share code, notes, and snippets.

@Ashkanph
Created July 26, 2020 11:22
Show Gist options
  • Save Ashkanph/5688b42f567fffb2a2c9c421c41f88b6 to your computer and use it in GitHub Desktop.
Save Ashkanph/5688b42f567fffb2a2c9c421c41f88b6 to your computer and use it in GitHub Desktop.
pulsing border css (beating)
.circle {
width: 35px;
height: 35px;
border-radius: 50%;
box-shadow: 0px 0px 1px 1px #0000001a;
}
.pulse {
animation: pulse-animation 2s infinite;
}
@keyframes pulse-animation {
0% {
box-shadow: 0 0 0 0px rgba(0, 0, 0, 0.2);
}
100% {
box-shadow: 0 0 0 20px rgba(0, 0, 0, 0);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment