Skip to content

Instantly share code, notes, and snippets.

@dhilipkmr
Created January 21, 2019 18:35
Show Gist options
  • Save dhilipkmr/7b39b776a1a7f6cf958f717a96a09d36 to your computer and use it in GitHub Desktop.
Save dhilipkmr/7b39b776a1a7f6cf958f717a96a09d36 to your computer and use it in GitHub Desktop.
Css for Ripple
/* Ripple */
[ripple] {
position: relative;
overflow: hidden;
}
[ripple] .ripple--container {
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
}
[ripple] .ripple--container span {
transform: scale(0);
border-radius: 100%;
position: absolute;
opacity: 0.75;
background-color: #fff;
animation: ripple 850ms;
}
@-moz-keyframes ripple {
to {
opacity: 0;
transform: scale(2);
}
}
@-webkit-keyframes ripple {
to {
opacity: 0;
transform: scale(2);
}
}
@-o-keyframes ripple {
to {
opacity: 0;
transform: scale(2);
}
}
@keyframes ripple {
to {
opacity: 0;
transform: scale(2);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment