-
Notifications
You must be signed in to change notification settings - Fork 21
Logo easter egg #69
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Logo easter egg #69
Conversation
Hovering the logo animates it! This was mainly done just for fun, not sure if it makes sense to keep it or not.
Oh this broke some stuff on mobile lol |
I actually imported the class prop (which fixes mobile), this probably isn't how I should be doing this but idk react lol |
Instead of using a GIF for this, it would probably be smarter to use a CSS animation. I'll try to recreate the GIF as a CSS animation and then send you the code in the comments. |
Alright, I gave it a try using CSS animations but it's not exactly like the GIF that you made. |
Seconding CSS animations if possible - that lets us disable them for people who ask for less motion, and the byte size of it is significantly reduced |
This is great! If this animation is only on hover, I think it makes sense to just make the iteration count 1. I don't know react & animations too well, so I'm not sure how to get this to only animate on hover. Would I just add and remove the new jump animation class? Here's a version that only animates once, as well as with a decreased animation time to match the gif (idk if I prefer it being slower or the same speed as the gif though): https://play.tailwindcss.com/F6JLzKIA8x?file=config |
Theoretically there's the |
I completely forgot about hover lol. According to this issue, it looks like jit (on tailwindplay) doesn't have support for extending group hover for animations? Anyway, I got it to work by removing the mode line, but for some reason the animation delay isn't applying now. |
Hovering the logo animates it!
This was mainly done just for fun, not sure if it makes sense to keep it or not, and idk if it's implemented correctly.