mirror of
https://github.com/medialab-prado/datamad2017.git
synced 2024-12-27 21:21:22 +01:00
85 lines
2 KiB
SCSS
85 lines
2 KiB
SCSS
|
@if $use-flipInX == true {
|
||
|
|
||
|
@-webkit-keyframes flipInX {
|
||
|
0% {
|
||
|
-webkit-transform: perspective($flipper-perspective) rotateX($flipper-degrees-max);
|
||
|
opacity: 0;
|
||
|
}
|
||
|
|
||
|
40% {
|
||
|
-webkit-transform: perspective($flipper-perspective) rotateX(-$flipper-degrees);
|
||
|
}
|
||
|
|
||
|
70% {
|
||
|
-webkit-transform: perspective($flipper-perspective) rotateX($flipper-degrees);
|
||
|
}
|
||
|
|
||
|
100% {
|
||
|
-webkit-transform: perspective($flipper-perspective) rotateX(0deg);
|
||
|
opacity: 1;
|
||
|
}
|
||
|
}
|
||
|
@-moz-keyframes flipInX {
|
||
|
0% {
|
||
|
-moz-transform: perspective($flipper-perspective) rotateX($flipper-degrees-max);
|
||
|
opacity: 0;
|
||
|
}
|
||
|
|
||
|
40% {
|
||
|
-moz-transform: perspective($flipper-perspective) rotateX(-$flipper-degrees);
|
||
|
}
|
||
|
|
||
|
70% {
|
||
|
-moz-transform: perspective($flipper-perspective) rotateX($flipper-degrees);
|
||
|
}
|
||
|
|
||
|
100% {
|
||
|
-moz-transform: perspective($flipper-perspective) rotateX(0deg);
|
||
|
opacity: 1;
|
||
|
}
|
||
|
}
|
||
|
@-o-keyframes flipInX {
|
||
|
0% {
|
||
|
-o-transform: perspective($flipper-perspective) rotateX($flipper-degrees-max);
|
||
|
opacity: 0;
|
||
|
}
|
||
|
|
||
|
40% {
|
||
|
-o-transform: perspective($flipper-perspective) rotateX(-$flipper-degrees);
|
||
|
}
|
||
|
|
||
|
70% {
|
||
|
-o-transform: perspective($flipper-perspective) rotateX($flipper-degrees);
|
||
|
}
|
||
|
|
||
|
100% {
|
||
|
-o-transform: perspective($flipper-perspective) rotateX(0deg);
|
||
|
opacity: 1;
|
||
|
}
|
||
|
}
|
||
|
@keyframes flipInX {
|
||
|
0% {
|
||
|
transform: perspective($flipper-perspective) rotateX($flipper-degrees-max);
|
||
|
opacity: 0;
|
||
|
}
|
||
|
|
||
|
40% {
|
||
|
transform: perspective($flipper-perspective) rotateX(-$flipper-degrees);
|
||
|
}
|
||
|
|
||
|
70% {
|
||
|
transform: perspective($flipper-perspective) rotateX($flipper-degrees);
|
||
|
}
|
||
|
|
||
|
100% {
|
||
|
transform: perspective($flipper-perspective) rotateX(0deg);
|
||
|
opacity: 1;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
.flipInX {
|
||
|
@include animate-prefixer(backface-visibility, visible !important);
|
||
|
@include animate-prefixer(animation-name, flipInX);
|
||
|
}
|
||
|
}
|