CSS animations are fastest and most energy-efficient for simple, deterministic motion — hover states, loading indicators, attention hints. They run on the GPU and don't block the main thread. Use JavaScript (GSAP, Framer Motion) when you need orchestration across multiple elements, runtime-driven values, or scroll-linked animation. Alternative: Animista offers more preset variety but requires stepping through a gallery; this tool lets you tune parameters directly.
@keyframes fade-in-up {
from { opacity: 0; transform: translateY(12px); }
to { opacity: 1; transform: translateY(0); }
}
.card { animation: fade-in-up 0.4s ease-out both; }Entrance animation suitable for cards loading in on scroll. both preserves the starting state before the animation runs.
Last updated: 2026-04-22