Nativ ui
Documentation

Animations

Animation patterns and performance tips for smooth interactions.

Transition Utilities

Opacity Transition

Fade effect on hover.

Scale Transform

Scale up on hover.

Combined Transitions

Multiple properties animated together.

Keyframe Animations

Pulse

Loading skeleton effect.

Spin

Loading spinner.

Bounce

Attention-grabbing bounce.

Ping

Notification indicator.

Custom Animations

Fade In

Slide Up

Reduced Motion

Respect user preferences for reduced motion.

Animations disabled when
prefers-reduced-motion is set

Timing Reference

TypeDurationUse Case
Fast100-200msHovers, toggles
Standard200-300msMost transitions
Complex300-500msPage transitions, modals

Performance Tips

  1. Use transform and opacity - GPU-accelerated properties
  2. Avoid layout shifts - Don't animate width/height
  3. will-change sparingly - Only for known animations
  4. Respect motion preferences - Use prefers-reduced-motion