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/scss/effects/background-transitions/_bounce-to-bottom.scss

35 lines
791 B
SCSS
Raw Normal View History

2021-08-31 15:30:22 +00:00
/* Bounce To Bottom */
@mixin bounce-to-bottom {
@include hacks();
position: relative;
@include prefixed(transition-property, color);
@include prefixed(transition-duration, $slowDuration);
&:before {
content: "";
position: absolute;
z-index: -1;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: $activeColor;
@include prefixed(transform, scaleY(0));
@include prefixed(transform-origin, 50% 0);
@include prefixed(transition-property, transform);
@include prefixed(transition-duration, $slowDuration);
@include prefixed(transition-timing-function, ease-out);
}
&:hover,
&:focus,
&:active {
color: white;
&:before {
@include prefixed(transform, scaleY(1));
@include prefixed(transition-timing-function, cubic-bezier(.52,1.64,.37,.66));
}
}
}