Icons
Lucide Icons animated with Motion.
We animated Lucide Icons with Motion, one of the most popular icon libraries on the web.
Installation
You need to install the icon wrapper components to use the animated icons.
Icons
153 icons available
Installation
Copy
Usage
Usage
Install an icon
How to use an icon
Each icon has at least 3 animations:
path
: an animation of the pathLength from 0 to 1path-loop
: pathLength animation from 1 to 0 to 1default
: the default animation, customized for each icon
You can use the animation
prop to select the animation.
Some icons also have other animations created specifically for them.
default-loop
pointing-loop
out
Animations ending with -loop
are animations that start at the initial state, do the animation and return to the initial state.
pointing
pointing-loop
Trigger animation by parent element
You can use the AnimateIcon
component to manage child icon animations.
You can choose the animation on the AnimateIcon
component.
But you can also specify it directly on the icon, which will be given priority.
Props
Prop | Type | Default |
---|---|---|
loopDelay? | number | 0 |
loop? | boolean | false |
animation | string | - |
animateOnTap? | boolean | string | false |
animateOnHover? | boolean | string | false |
animate? | boolean | string | false |
onAnimateEnd? | () => void | undefined |
onAnimateStart? | () => void | undefined |
onAnimateChange? | onAnimateChange?: (value: boolean, animation: StaticAnimations | string) => void; | undefined |
size? | number | 28 |
Credits
We use the Lucide Icons library to create the icons and Motion to animate them.
We took our inspiration from: