1
0
Fork 0
mirror of https://github.com/uhIgnacio/igna.rocks.git synced 2024-08-15 02:23:12 +00:00
igna.rocks/assets/js/less/effects/background-transitions/_radial-out.less
2021-08-31 11:30:22 -04:00

35 lines
655 B
Text

/* Radial Out */
.radial-out() {
.hacks();
position: relative;
overflow: hidden;
background: @primaryColor;
.prefixed(transition-property, color);
.prefixed(transition-duration, @mediumDuration);
&:before {
content: "";
position: absolute;
z-index: -1;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: @activeColor;
border-radius: 100%;
.prefixed(transform, scale(0));
.prefixed(transition-property, transform);
.prefixed(transition-duration, @mediumDuration);
.prefixed(transition-timing-function, ease-out);
}
&:hover,
&:focus,
&:active {
color: white;
&:before {
.prefixed(transform, scale(2));
}
}
}