UNPKG

@hellouxpavel/cssanimation

Version:

A Powerful CSS Animation Library for Advanced Motion Design.

59 lines (47 loc) 1.17 kB
.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; } } :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; } /** * Module: Pull release * Filename: ca__PullRelease.ca__fx-css */ .ca__fx-pullRelease { animation-name: pullRelease; } @keyframes pullRelease { 15% { transform: scale(1.ca__fx-8); } } .ca__fx-pushRelease { animation-name: pushRelease; } @keyframes pushRelease { 15% { transform: scale(0.ca__fx-5); } }