React micro-interactions
89 examples. Micro-interactions built with React and Framer Motion. Small, focused animations that respond to a single action: a like that bursts, a toggle that squishes, a field that confirms. Every example comes with a prompt your AI coding tool can rebuild.
React micro-interactions: common questions
- How do I build micro-interactions 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.
- What is a micro-interaction?
- A micro-interaction is a small animated response to one user action, such as liking a post, toggling a setting or submitting a field. It confirms the action happened and makes the interface feel alive.
- How long should a micro-interaction last?
- Most feel right between 150 and 400 ms. Use springs for physical moves, keep the motion local to the control, and offer a reduced-motion version.
Micro-interactions in other frameworks
More React animations
- All React
- Screen & page transitions57
- Card animations50
- Landing page animations40
- Hover effects39
- 3D UI animations32
- Text animations30
- Spring animations27
- Input & form animations25
- Menu & navigation animations21
- Scroll animations20
- Morph animations19
- Gradient & glow animations18
- Button animations17
- Particle effects16
- Loading animations13
- Toggle & switch animations13
- Chart & data animations13
- Carousel animations11
- Slider animations9
- Onboarding animations7
- Checkbox animations4