TelegramPWA/src/components/ui/RippleEffect.scss
Alexander Zinchuk 3afcde3217 Initial commit
2021-04-09 14:11:51 +03:00

49 lines
694 B
SCSS

@-webkit-keyframes ripple-animation {
from {
transform: scale(0);
opacity: 1;
}
50% {
opacity: 1;
}
to {
opacity: 0;
transform: scale(2);
}
}
@keyframes ripple-animation {
from {
transform: scale(0);
opacity: 1;
}
50% {
opacity: 1;
}
to {
opacity: 0;
transform: scale(2);
}
}
.ripple-container {
position: absolute;
top: 0;
left: 0;
bottom: 0;
right: 0;
body.animation-level-0 & {
display: none;
}
span {
position: absolute;
display: block;
background-color: var(--ripple-color, rgba(0, 0, 0, .08));
border-radius: 50%;
transform: scale(0);
animation: ripple-animation 700ms;
}
}