Animating a Hero title
Playing with animations with vue/headlessui.
Trying to create a Hero title that has a highlighted word that rotates and animates.
So it would go from "I am a bilingual person" to "I am a bad person" (ignore the words, just for the sake of the demo :P) and keep rotating.
Animating the word dropping in is easy enough. But what tools do I have at my disposal for the surrounding content "I am a" and "person" to shift with an animation when the inner element changes size?
11 Replies
Damnit wrong flair here, this is not a deep question lol
Lol
I've never done this, but have you tried autoanimate?
hmmm
gonna try that!
👍
You are a beautiful person
It worked? 👀
yep! might need to tweak things a bit but works right out of the box
Ayy nice, mind sending a vid?
yeah I'll get the duration tweaked and get one up. What's a good video/gif recorder these days lol?
I use sharex lol, you can also use gyazo but no worries, just wanted to see 😄
yeah I want to share it with a friend anyways heh
didn't notice it is clashing a bit with the transition I used
should be able to tweak it a bit though
Maybe I'll just ditch the vue transition here and just use autoanimate for this one. Good enough heh. Still wondering if there's a way to do this natively with vue/tailwind