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/border-transitions/_ripple-out.less
2021-08-31 11:30:22 -04:00

35 lines
578 B
Text

/* Ripple Out */
.keyframes(~"@{nameSpace}-ripple-out", {
100% {
top: -(6px + 6px);
right: -(6px + 6px);
bottom: -(6px + 6px);
left: -(6px + 6px);
opacity: 0;
}
});
.ripple-out() {
@outerBorderWidth: 6px;
@innerBorderWidth: 6px;
.hacks();
position: relative;
&:before {
content: '';
position: absolute;
border: @primaryColor solid @outerBorderWidth;
top: 0;
right: 0;
bottom: 0;
left: 0;
.prefixed(animation-duration, 1s);
}
&:hover:before,
&:focus:before,
&:active:before {
.prefixed(animation-name, ~"@{nameSpace}-ripple-out");
}
}