UNPKG

@hellouxpavel/cssanimation

Version:

A Powerful CSS Animation Library for Advanced Motion Design.

52 lines (44 loc) 1.22 kB
/*! * Module: stepGlitchOut Animation * Usage: <div class="cssanimation ca__fx-stepGlitchOut">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) !important; } @media (prefers-reduced-motion: reduce) { .cssanimation, .cssanimation span { animation: none !important; transition: none !important; } } /* stylelint-enable */ .ca__fx-stepGlitchOut { animation: stepGlitchOut 1.1s steps(8, end) forwards; will-change: transform, opacity, filter; } @keyframes stepGlitchOut { to { opacity: 0; transform: skewX(-15deg) scale(1.3); filter: blur(2px) brightness(1.5); } }