UNPKG

@hellouxpavel/cssanimation

Version:

A Powerful CSS Animation Library for Advanced Motion Design.

51 lines (44 loc) 1.57 kB
/*! * Module: maskStripesVerticalOut Animation * Usage: <div class="cssanimation ca__fx-maskStripesVerticalOut">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-maskStripesVerticalOut { animation-name: mask-stripesVerticalOut; -webkit-mask-image: repeating-linear-gradient(to right, black 0,black 10%, transparent 10%, transparent 20%); mask-image: repeating-linear-gradient(to right, black 0,black 10%, transparent 10%, transparent 20%); -webkit-mask-image: repeating-linear-gradient(to right, black 0 10%, transparent 10% 20%); mask-image: repeating-linear-gradient(to right, black 0 10%, transparent 10% 20%); -webkit-mask-size: 200% 100%; mask-size: 200% 100%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; }