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/curls/_curl-bottom-left.scss

34 lines
669 B
SCSS
Raw Normal View History

2021-08-31 15:30:22 +00:00
/* Curl Bottom Left */
@mixin curl-bottom-left {
@include hacks();
position: relative;
&:before {
pointer-events: none;
position: absolute;
content: '';
height: 0;
width: 0;
bottom: 0;
left: 0;
background: $revealAreaColor; /* IE9 */
background: linear-gradient(
45deg,
$revealAreaColor 45%,
$curlLineColor 50%,
$curlTransitionColor 56%,
$curlLastColor 80%
);
box-shadow: 1px -1px 1px rgba(0, 0, 0, .4);
@include prefixed(transition-duration, $mediumDuration);
@include prefixed(transition-property, "width, height");
}
&:hover:before,
&:focus:before,
&:active:before {
width: $curlWidth;
height: $curlHeight;
}
}