UNPKG

@hellouxpavel/cssanimation

Version:

A Powerful CSS Animation Library for Advanced Motion Design.

72 lines (61 loc) 1.56 kB
/*! * Module: blobPulseDrop Animation * Usage: <div class="cssanimation ca__fx-blobPulseDrop">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-blobPulseDrop { width: 80px; height: 80px; background: radial-gradient(circle at 50% 50%, #ffffff, #00ffcc); border-radius: 50%; animation: blobPulseDrop 1.8s ease-in-out infinite; box-shadow: 0 0 12px #00ffc3, 0 0 24px #00ffc3; } @keyframes blobPulseDrop { 0%, 100% { transform: translateY(0) scale(1); opacity: 1; } 30% { transform: translateY(-30%) scale(1.15, 0.85); } 50% { transform: translateY(0) scale(0.9, 1.1); opacity: 0.9; } 75% { transform: translateY(-15%) scale(1.05, 0.95); opacity: 1; } }