mirror of
https://github.com/medialab-prado/datamad2017.git
synced 2024-12-30 22:41:22 +01:00
86 lines
1.3 KiB
SCSS
86 lines
1.3 KiB
SCSS
@if $use-bounceInUp == true {
|
|
|
|
@-webkit-keyframes bounceInUp {
|
|
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 bounceInUp {
|
|
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 bounceInUp {
|
|
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 bounceInUp {
|
|
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);
|
|
}
|
|
}
|
|
|
|
.bounceInUp {
|
|
@include animate-prefixer(animation-name, bounceInUp);
|
|
}
|
|
|
|
}
|