datamad2017/_sass/vendor/animations/fade-enter/_fadeInDown.scss

55 lines
796 B
SCSS
Raw Permalink Normal View History

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