@import '../colors';

.tix-ripple-effect.v4 {
  position: relative;

  .tix-ripple {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    border-radius: 50%;
    background-color: rgba($color-B400, 0.08);

    @at-root {
      .danger#{&} {
        background-color: rgba($color-R400, 0.08);
      }
    }

    &.rippling {
      animation: tix-ripple-scale 500ms linear both;
    }
  }
}

@keyframes tix-ripple-scale {
  0% {
    transform: scale(0);
    opacity: 0;
  }

  50% {
    transform: scale(1);
    opacity: 1;
  }

  100% {
    transform: scale(1);
    opacity: 0;
  }
}
