63 points · by evolabs · 6mo ago · 18 comments
Tim here, maintainer of the lucide-motion-vue library. I build this as a way to use nice animated icons in my webapps. We were already on lucide, and found animate-ui animated icons as a great collection, unfortunately React only or made to be used with shadcn.
So I ported the library to Vue, and combined it with another library (lucide-animated.com). As both libraries dont share the same animations and/or icons, this creates the largest animated icons library for vue that can be used from one source.
Additionally, I've made several quality of live changes to make it easier to use the icons: - drop-in replacement for lucide icons, or use a seperate namespace if you want - several animation variants - easy to be used standalone or in buttons - several animation triggers - comprehensive overview, playground and docs page, comes with llms.txt to be used by agents
Finally, the repo also contains a "forge". With this, you can
a) take any icon from the lucide library, or have ai suggest some b) autogenerate animations for these icons c) add them to the library with one click
We'll use the forge over time to hopefully create animated variants for all of lucides icons, if these icons are useful to be animated.
Looking forward to hear your feedback Cheers!
Some examples need more work i think
"Database backup" has circular arrow spinning backwards
"Earth" shows lines being drawn -- instead i expected it to show an abstract spin of the globe
"Droplet" animates the outline draw. Expected a droplet that starts small and descends to become full size.
Same with "flame" -- should ideally be an animated flame licking up / whisps
"Copy" and "File Stack" -- the animation shown should ideally be reversed i think
"Git-branch" -- animation is wrong, doesn't show branching -- just drawing nodes and lines.
"Hand-grab" -- should start with open palm and then the grab.
Same with "hand-fist"
Many animations are simple zoom/enlarge - like those on right angle arrows are not serving a purpose
The droplet is what I found unexpected, too, indeed. Yet, the overall ideas, including the reverse animations on rotating ones, with some funky ease, is purely genius, I believe...
If the actual animations/work are of hand of the Tim Rietz, the developer signed alongside Claude LLM, the they are a great artist!
Related: https://icones.js.org/
To clarify, are you the author of the animations, or is it anyone/anything else as LLM, as the Claude used?
It seems like some look like of artists' Elliot Sutton (imskyleen at GitHub) and/or and dmytro (pqoqubbw at GitHub).
Oh... and the animation ease effect of rating items is also of dmytro's, isn'it it? It may be seen at:
- https://lucide-animated.com/
In this case, what is the main reason of your/LLMs project, if I may ask? What does it provide the aforementioned don't?
// ----- Edit (+20m)
I see, your project is a port to Vue you started:
- https://github.com/imskyleen/animate-ui/discussions/178
Relatively similar to projects as RadixVue, ShadcnVue, and the following:
- https://github.com/iloomilo/itshover-vue
Just in case, the aforementioned `icones.js.com` is not "new", but a project of Vue Community, initiated by Anthony Fu (antfu at GitHub), who is a member of the Vue core Team.
Regardless, though I don't appreciate use of LLMs (and presenting its output as personal work/effort), I appreciate you heartfelt for the added support for the ineffably marvelous Vue!
However, this works only for hover animations then, I believe. The library also provides other triggers.
And some icons use springs, where when you hover away mid-animation it settles "smoothly".
But yes, I can defs add a no JS option for selected icons :)
Others just draw the SVG path or wiggle/bounce a bit.
If I were the creator here I might differentiate this into two buckets: custom animation or not. And then allow the generic animations to be applied to any of them.
When I hit back and get returned here when I wanted to check out other icons made me not go back to check out others.
I can add something like this, limited to "simple" animations, tho. Transform, opacity, stroke-draw ones should work, then you'd need zero dependencies. Everything that uses spring, path-morph or state-driven animation likely cant be flattened to static code.
Oh and only the hover trigger would be usable that way, not the others.