TelegramPWA/src/components/ui/RippleEffect.scss
Alexander Zinchuk 4f42b676ce Settings: Performance mode (#3045)
Co-authored-by: Alexander Zinchuk <alx.zinchuk@gmail.com>
2023-04-25 17:28:03 +04:00

50 lines
723 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.no-page-transitions & {
display: none;
}
span {
position: absolute;
display: block;
background-color: var(--ripple-color, rgba(0, 0, 0, 0.08));
border-radius: 50%;
transform: scale(0);
animation: ripple-animation 700ms;
pointer-events: none;
}
}