@hellouxpavel/cssanimation
Version:
A Powerful CSS Animation Library for Advanced Motion Design.
99 lines (79 loc) • 1.85 kB
CSS
.cssanimation {
animation-duration: var(--cssanimation-duration, 1s);
animation-fill-mode: var(--cssanimation-fill-mode, both);
}
.cssanimation span {
display: var(--cssanimation-display, inline-block);
}
.infinite {
animation-iteration-count: var(--cssanimation-infinite, infinite) ;
}
@media (prefers-reduced-motion: reduce) {
.cssanimation,
.cssanimation span {
animation: none ;
transition: none ;
}
}
:root {
--cssanimation-duration: 1s;
--cssanimation-fill-mode: both;
--cssanimation-infinite: infinite;
--cssanimation-backface-visibility: hidden;
--cssanimation-transform-style: preserve-3d;
--cssanimation-will-change: transform, opacity;
--cssanimation-display: inline-block;
--move-distance: -800px;
}
/**
* Module: Rotate Out
* Filename: ca__RotateOut.ca__fx-css
*/
.ca__fx-rotateOutLeft {
animation-name: rotateOutLeft;
}
@keyframes rotateOutLeft {
from {
transform: translateX(0) rotate(360deg);
}
to {
transform: translateX(-800px) rotate(0deg);
opacity: 0;
}
}
.ca__fx-rotateOutRight {
animation-name: rotateOutRight;
}
@keyframes rotateOutRight {
from {
transform: translateX(0) rotate(-360deg);
}
to {
transform: translateX(800px) rotate(0deg);
opacity: 0;
}
}
.ca__fx-rotateOutTop {
animation-name: rotateOutTop;
}
@keyframes rotateOutTop {
from {
transform: translateX(0) rotate(360deg);
}
to {
transform: translateY(-800px) rotate(0deg);
opacity: 0;
}
}
.ca__fx-rotateOutBottom {
animation-name: rotateOutBottom;
}
@keyframes rotateOutBottom {
from {
transform: translateX(0) rotate(360deg);
}
to {
transform: translateY(800px) rotate(0deg);
opacity: 0;
}
}