mirror of
https://github.com/medialab-prado/datamad2017.git
synced 2024-12-27 21:21:22 +01:00
37 lines
1.5 KiB
SCSS
37 lines
1.5 KiB
SCSS
|
@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);
|
||
|
}
|
||
|
|
||
|
}
|