@hellouxpavel/cssanimation
Version:
A Powerful CSS Animation Library for Advanced Motion Design.
58 lines (49 loc) • 1.3 kB
CSS
/*!
* Module: moonFadeRight Animation
* Usage: <div class="cssanimation ca__fx-moonFadeRight">Your Content</div>
*/
/* stylelint-disable */
: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;
}
.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 ;
}
}
/* stylelint-enable */
.ca__fx-moonFadeRight {
animation: moonFadeRight 2s ease-out both;
will-change: transform, opacity;
}
@keyframes moonFadeRight {
0% {
transform: translateX(30%) scale(0.95);
opacity: 0;
filter: brightness(0.4) blur(5px);
}
100% {
transform: translateX(0%) scale(1);
opacity: 1;
filter: none;
}
}