UNPKG

@hellouxpavel/cssanimation

Version:

A Powerful CSS Animation Library for Advanced Motion Design.

69 lines (59 loc) 1.5 kB
/*! * Module: bounceOutWaddle Animation * Usage: <div class="cssanimation ca__fx-bounceOutWaddle">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-bounceOutWaddle { animation-name: bounceOutWaddle; animation-timing-function: ease-in; transform-origin: bottom center; will-change: transform, opacity; } @keyframes bounceOutWaddle { 0% { transform: translateY(0%) rotate(0deg); opacity: 1; } 30% { transform: rotate(10deg); } 100% { transform: translateY(120%) rotate(-20deg); opacity: 0; } } /** * Module: Pull release * Filename: ca__PullRelease.css */ .ca__fx-pullRelease { animation-name: pullRelease; }