What Makes a Good Animation
A good animation should:Enhance Meaning
The animation should reinforce or reveal the icon’s purpose, not just add motion for the sake of it.
Be Creative
Avoid generic path length animations. Think about how the icon’s elements can move, transform, or interact.
Feel Natural
Use appropriate easing, timing, and physics to make animations feel smooth and intentional.
Stay Performant
Keep animations lightweight and avoid excessive complexity that could impact performance.
Avoid Generic Animations
Instead, think creatively about how the icon’s meaning can be expressed through motion.Common Animation Patterns
Scale and Pulse
Great for icons that represent emphasis or interaction:Rotation and Shake
Perfect for notifications or alert icons:Multi-Element Animations
Animate different parts of the icon independently:Position and Movement
Animate position to convey action:Morphing Paths
Change thed attribute to morph shapes:
Complex Choreography
Combine multiple animations with delays:Framer Motion Patterns
All animations in this project use Framer Motion. Here are the key patterns:Using Controls
Every icon usesuseAnimation() for programmatic control:
Variants System
Define animation states using variants:Transition Options
Control timing, easing, and repetition:Animation Examples from the Project
Study these examples for inspiration:- Heart (
icons/heart.tsx) - Simple scale pulse - Bell (
icons/bell.tsx) - Rotation shake - Sparkles (
icons/sparkles.tsx) - Multi-element with fills and blinks - Send (
icons/send.tsx) - Position change with trail effect - Rocket (
icons/rocket.tsx) - Complex floating motion with morphing fire - Zap (
icons/zap.tsx) - Path drawing (used creatively, not generically)
Testing Your Animation
- Test on hover - Ensure smooth enter/exit transitions
- Test programmatically - Use the imperative handle to trigger animations
- Check performance - Make sure animations run at 60fps
- Verify responsiveness - Test at different sizes
- Review on different devices - Check mobile and desktop behavior
Next Steps
- Review the creating icons guide for the full setup
- Check the contributing guidelines for submission requirements
- Browse existing icons in
/icons/for more examples