mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-19 03:32:21 +08:00
33 lines
755 B
SCSS
33 lines
755 B
SCSS
/**
|
|
* Portions lovingly adapted from Material Design Lite
|
|
* Copyright Google, 2015, Licensed under the Apache 2 license.
|
|
* https://github.com/google/material-design-lite
|
|
*/
|
|
$ripple-bg-color: white;
|
|
$ripple-animation-curve: cubic-bezier(0, 0, 0.2, 1) !default;
|
|
|
|
.md-ripple {
|
|
background: $ripple-bg-color;
|
|
border-radius: 50%;
|
|
height: 50px;
|
|
left: 0;
|
|
opacity: 0;
|
|
pointer-events: none;
|
|
position: absolute;
|
|
top: 0;
|
|
transform: translate(-50%, -50%);
|
|
width: 50px;
|
|
overflow: hidden;
|
|
|
|
&.md-ripple-animating {
|
|
transition: transform 0.3s $ripple-animation-curve;
|
|
width: 0.3s $ripple-animation-curve;
|
|
height: 0.3s $ripple-animation-curve;
|
|
opacity: 0.6s $ripple-animation-curve;
|
|
}
|
|
|
|
&.is-visible {
|
|
opacity: 0.3;
|
|
}
|
|
}
|