Why Easing Matters for Efficacy
Linear animations feel mechanical. Easing functions (like ease-out or cubic-bezier) add weight and momentum, making cards slide and pulse naturally.
# Easing Profiles
- **ease-out**: Starts fast, slows down. Excellent for slide-in menu cards.
- **ease-in**: Starts slow, speeds up. Great for elements exiting the screen.
- **cubic-bezier(x1, y1, x2, y2)**: Enables custom spring-back recoil movements.
.element {
animation: float 2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}Accessibility & Reduced Motion
Always respect OS preferences. Users with vestibular conditions can suffer nausea from heavy transitions. Wrap animations inside media queries:
@media (prefers-reduced-motion: reduce) {
* {
animation-delay: 0s !important;
animation-duration: 0s !important;
animation-iteration-count: 1 !important;
transition-duration: 0s !important;
scroll-behavior: auto !important;
}
}