wp-rdnyc/assets/css/_rolling-mandala.scss

39 lines
806 B
SCSS
Raw Permalink Normal View History

2021-08-04 07:46:55 -04:00
@use "sass:math";
$mandala_final_opacity: 0.20;
2021-08-04 07:46:55 -04:00
@keyframes roll_in {
2021-08-04 07:46:55 -04:00
0% {
transform: rotate(80deg) translateY(-40vh) translateX(-30vw);
2021-08-04 07:46:55 -04:00
opacity: 1.0;
}
100% {
transform: rotate(0) translateY(-40vh) translateX(0px);
opacity: $mandala_final_opacity;
2021-08-04 07:46:55 -04:00
}
}
$xs_mandala_height: 170vw;
$md_mandala_height: 120vw;
2021-08-04 07:46:55 -04:00
.roll-mandala {
height: $xs_mandala_height;
2021-08-04 07:46:55 -04:00
max-width: inherit !important;
position: absolute;
right: math.div($xs_mandala_height, -2.1);
2021-08-04 07:46:55 -04:00
top: 50%;
pointer-events: none;
z-index: -999;
transform: translateY(-40vh);
opacity: $mandala_final_opacity;
animation: roll_in 1.5s cubic-bezier(0.51, 0.04, 0.68, 1.08);
2021-08-04 07:46:55 -04:00
}
@include media-breakpoint-up(sm) {
.roll-mandala {
height: $md_mandala_height;
right: math.div($md_mandala_height, -2.1);
}
}