UNPKG

@hellouxpavel/cssanimation

Version:

A Powerful CSS Animation Library for Advanced Motion Design.

56 lines (47 loc) 1.29 kB
/*! * Module: orbitPopTwistIn Animation * Usage: <div class="cssanimation ca__orbitPopTwistIn">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-orbitPopTwistIn { animation-name: orbitPopTwistIn; transform-style: preserve-3d; } @keyframes orbitPopTwistIn { 0% { transform: scale(0.4) rotateX(-180deg) rotateY(-180deg) translateZ(-300px); opacity: 0; } 100% { transform: scale(1) rotateX(0) rotateY(0) translateZ(0); opacity: 1; } }