#Animated logo? (Next.JS/Tailwind CSS)
17 messages · Page 1 of 1 (latest)
🔎 This post has been indexed in our web forum and will be seen by search engines so other users can find it outside Discord
🕵️ Your user profile is private by default and won't be visible to users outside Discord, if you want to be visible in the web forum you can add the "Public Profile" role in id:customize
✅ You can mark a message as the answer for your post with Right click -> Apps -> Mark Solution
(if you don't see the option, try refreshing Discord with Ctrl + R)
It sems like its either the:
<rect clip-path="url(#:ro:-clip)" class="h-8 transition-all duration-300 fill-neutral-950 w-0 group-hover/logo:w-8"></rect>
or
<use href="#:ro:-path" class="stroke-neutral-950" fill="none" stroke-width="1.5"></use>
Most likely the first one rect clip-path
Don't know what rect and use is though:(
Oh wait <rect clip-path="url(#:rg:-clip)" class="h-8 transition-all duration-300 fill-neutral-950 w-0 group-hover/logo:w-8"></rect>
It is that one^
I wonder if I can somehow use the same thing in my own logo?
if I simply replace the svg code
what they did was add a fill color, then set the fill width to 0 and then on hover set it to the original width of the icon. it animates by default because of the transition-all property and the duration-300
Oh wow thanks a lot! thats cool
Do you think its possible to change the animation direction?
like going from right to left, or down to up?
yeah def. it also depends on your icon. because the animation will follow the path set on the svg
Oh, so the direction of the animation is dependent on the path set inside the SVG code itself