React loading animations

13 examples. Loading animations built with React and Framer Motion. Loaders, progress bars, skeletons and 'thinking' indicators that make waiting feel shorter, from playful spinners to AI typing states.

React loading animations: common questions

How do I build loading animations in React?
Pick an example below, copy its prompt (or send it to Claude Code, Cursor or Codex) and your agent builds it in React. Each prompt lists the layout, timing and easing, and links a keyframe sheet of the motion. Framer Motion (now motion/react) covers most UI work: layout animations, AnimatePresence for enter and exit, gestures and springs. Use GSAP for long timelines and scroll choreography, and three.js or react-three-fiber for 3D.
When should I show a loading animation?
Show it when an action takes longer than about 300 ms. Under one second, a subtle indicator is enough; for longer waits, show progress or a skeleton of the content that's coming.
Spinner or skeleton?
Skeletons work best when you know the layout of the content that's loading; spinners and progress bars suit actions like uploads or saving.

More React animations