datamad2017/_sass/vendor/animations/lightspeed/_lightSpeedIn.scss

37 lines
1.5 KiB
SCSS
Raw Permalink Normal View History

@if $use-lightSpeedIn == true {
@-webkit-keyframes lightSpeedIn {
0% { -webkit-transform: translateX(100%) skewX(-$base-degrees); opacity: 0; }
60% { -webkit-transform: translateX(-20%) skewX($base-degrees); opacity: 1; }
80% { -webkit-transform: translateX(0%) skewX(-$base-degrees / 2); opacity: 1; }
100% { -webkit-transform: translateX(0%) skewX(0deg); opacity: 1; }
}
@-moz-keyframes lightSpeedIn {
0% { -moz-transform: translateX(100%) skewX(-$base-degrees); opacity: 0; }
60% { -moz-transform: translateX(-20%) skewX($base-degrees); opacity: 1; }
80% { -moz-transform: translateX(0%) skewX(-$base-degrees / 2); opacity: 1; }
100% { -moz-transform: translateX(0%) skewX(0deg); opacity: 1; }
}
@-o-keyframes lightSpeedIn {
0% { -o-transform: translateX(100%) skewX(-$base-degrees); opacity: 0; }
60% { -o-transform: translateX(-20%) skewX($base-degrees); opacity: 1; }
80% { -o-transform: translateX(0%) skewX(-$base-degrees / 2); opacity: 1; }
100% { -o-transform: translateX(0%) skewX(0deg); opacity: 1; }
}
@keyframes lightSpeedIn {
0% { transform: translateX(100%) skewX(-$base-degrees); opacity: 0; }
60% { transform: translateX(-20%) skewX($base-degrees); opacity: 1; }
80% { transform: translateX(0%) skewX(-$base-degrees / 2); opacity: 1; }
100% { transform: translateX(0%) skewX(0deg); opacity: 1; }
}
.lightSpeedIn {
@include animate-prefixer(animation-name, lightSpeedIn);
@include animate-prefixer(animation-timing-function, $base-timing-function-out);
}
}