@import "../../themes/ionic.globals";


// Material Design Ripple Effect
// --------------------------------------------------

:host {
  @include position(0, 0, 0, 0);

  position: absolute;

  contain: strict;
}

.ripple-effect {
  @include border-radius(50%);

  position: absolute;

  // Should remain static for performance reasons
  background-color: currentColor;
  color: inherit;

  contain: strict;
  opacity: 0;
  animation-name: rippleAnimation;
  animation-duration: 200ms;
  animation-timing-function: ease-out;
  will-change: transform, opacity;
  pointer-events: none;
}

@keyframes rippleAnimation {
  0% {
    transform: scale(.1);

    opacity: .2;
  }

  100% {
    transform: scale(1);

    opacity: 0;
  }
}
