Created
October 31, 2018 07:38
-
-
Save hunghg255/a79ce94cce6d804fd45cb86eda869f37 to your computer and use it in GitHub Desktop.
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-mousemove { | |
position: relative; | |
overflow: hidden; | |
cursor: pointer; | |
} | |
.mask { | |
position:absolute; | |
width: 10px; | |
height: 10px; | |
top:0; | |
left:0; | |
border-radius: 50%; | |
background: rgba(255,255,255,.3); | |
transform: scale(0); | |
animation: ripple 1s both linear; | |
-o-animation: ripple 1s both linear; | |
-moz-animation: ripple 1s both linear; | |
-webkit-animation: ripple 1s both linear; | |
} | |
@keyframes ripple { | |
to {transform: scale(50); opacity: 0;} | |
} | |
@-o-keyframes ripple{ | |
to {transform: scale(50); opacity: 0;} | |
} | |
@-moz-keyframes ripple{ | |
to {transform: scale(50); opacity: 0;} | |
} | |
@-webkit-keyframes ripple { | |
to {transform: scale(50); opacity: 0;} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment