datamad2017/_sass/vendor/animations/bounce-enter/_bounceInLeft.scss

86 lines
1.3 KiB
SCSS

@if $use-bounceInLeft == true {
@-webkit-keyframes bounceInLeft {
0% {
opacity: 0;
-webkit-transform: translateX(-$base-distance-big * 2);
}
60% {
opacity: 1;
-webkit-transform: translateX($base-distance * 3);
}
80% {
-webkit-transform: translateX(-$base-distance);
}
100% {
-webkit-transform: translateX(0);
}
}
@-moz-keyframes bounceInLeft {
0% {
opacity: 0;
-moz-transform: translateX(-$base-distance-big * 2);
}
60% {
opacity: 1;
-moz-transform: translateX($base-distance * 3);
}
80% {
-moz-transform: translateX(-$base-distance);
}
100% {
-moz-transform: translateX(0);
}
}
@-o-keyframes bounceInLeft {
0% {
opacity: 0;
-o-transform: translateX(-$base-distance-big * 2);
}
60% {
opacity: 1;
-o-transform: translateX($base-distance * 3);
}
80% {
-o-transform: translateX(-$base-distance);
}
100% {
-o-transform: translateX(0);
}
}
@keyframes bounceInLeft {
0% {
opacity: 0;
transform: translateX(-$base-distance-big * 2);
}
60% {
opacity: 1;
transform: translateX($base-distance * 3);
}
80% {
transform: translateX(-$base-distance);
}
100% {
transform: translateX(0);
}
}
.bounceInLeft {
@include animate-prefixer(animation-name, bounceInLeft);
}
}