mirror of
https://github.com/medialab-prado/datamad2017.git
synced 2024-12-30 14:31:23 +01:00
85 lines
1.3 KiB
SCSS
85 lines
1.3 KiB
SCSS
@if $use-bounceInDown == true {
|
|
@-webkit-keyframes bounceInDown {
|
|
0% {
|
|
opacity: 0;
|
|
-webkit-transform: translateY(-$base-distance-big * 2);
|
|
}
|
|
|
|
60% {
|
|
opacity: 1;
|
|
-webkit-transform: translateY($base-distance * 3);
|
|
}
|
|
|
|
80% {
|
|
-webkit-transform: translateY(-$base-distance);
|
|
}
|
|
|
|
100% {
|
|
-webkit-transform: translateY(0);
|
|
}
|
|
}
|
|
|
|
@-moz-keyframes bounceInDown {
|
|
0% {
|
|
opacity: 0;
|
|
-moz-transform: translateY(-$base-distance-big * 2);
|
|
}
|
|
|
|
60% {
|
|
opacity: 1;
|
|
-moz-transform: translateY($base-distance * 3);
|
|
}
|
|
|
|
80% {
|
|
-moz-transform: translateY(-$base-distance);
|
|
}
|
|
|
|
100% {
|
|
-moz-transform: translateY(0);
|
|
}
|
|
}
|
|
|
|
@-o-keyframes bounceInDown {
|
|
0% {
|
|
opacity: 0;
|
|
-o-transform: translateY(-$base-distance-big * 2);
|
|
}
|
|
|
|
60% {
|
|
opacity: 1;
|
|
-o-transform: translateY($base-distance * 3);
|
|
}
|
|
|
|
80% {
|
|
-o-transform: translateY(-$base-distance);
|
|
}
|
|
|
|
100% {
|
|
-o-transform: translateY(0);
|
|
}
|
|
}
|
|
|
|
@keyframes bounceInDown {
|
|
0% {
|
|
opacity: 0;
|
|
transform: translateY(-$base-distance-big * 2);
|
|
}
|
|
|
|
60% {
|
|
opacity: 1;
|
|
transform: translateY($base-distance * 3);
|
|
}
|
|
|
|
80% {
|
|
transform: translateY(-$base-distance);
|
|
}
|
|
|
|
100% {
|
|
transform: translateY(0);
|
|
}
|
|
}
|
|
|
|
.bounceInDown {
|
|
@include animate-prefixer(animation-name, bounceInDown);
|
|
}
|
|
}
|