lepticons-animate
Icon animations for Leptos -- stroke draw-in, spin, pulse, bounce.
Part of the Lepticons toolkit.
DrawIcon
Stroke draw-in animation. The icon's paths animate from invisible to fully drawn.
use LucideGlyph;
use DrawIcon;
>
// With delay and custom easing
<DrawIcon glyph=Heart duration_ms=800 delay_ms=200 easing=EaseOut />
Props: glyph, duration_ms (default 600), delay_ms (default 0), easing (default "ease-in-out"), class, size, fill, stroke, stroke_width.
CSS Utility Animations
Add <AnimationStyles /> once in your app, then use class names on any <Icon>:
use ;
use AnimationStyles;
view!
| Class | Effect |
|---|---|
lepticons-spin |
360 degree rotation, 1s linear infinite |
lepticons-pulse |
Opacity fade 1 to 0.5, 2s ease-in-out infinite |
lepticons-bounce |
Vertical bounce, 1s ease infinite |
lepticons-ping |
Scale up and fade out, 1s infinite |
Related Crates
- lepticons -- core icon library (required dependency)
- lepticons-picker -- embeddable icon picker with search, grid, and category filter
Requirements
- Leptos 0.8.x
- lepticons 0.10.x
Demo
License
MIT