Created
January 21, 2019 18:35
-
-
Save dhilipkmr/7b39b776a1a7f6cf958f717a96a09d36 to your computer and use it in GitHub Desktop.
Css for Ripple
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* 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