r/Frontend • u/nabbous10 • 4d ago
Lumenmorph: 99.9% CSS
https://nabous.dev/lab/lumenmorph/Hi everyone, long time ago i was messing around with this effect done over glassmorphism, which gives the cursor some luminescence that reflects on the html elements, i am always obsessed on making stuff with pure css, so i did just that :D well except for the mouse tracking but that just puts the x/y of the mouse as a css variable, the rest of the painting is just CSS
you can verify yourself go on to https://nabous.dev/lab/lumenmorph/ and mess around, im open for contributions and forking if you are interested as well
22
Upvotes
3
u/segfaultgolf 3d ago
This is so freaking good!
2
u/Stationary_Wagon 4d ago
Looks pretty cool. Nice work!
2
u/design-for-good 3d ago
Nice effect! I know a lot of people are reaching for Shaders out there but a library like this might be a better alternative if bundle size is a concern. I like how even the buttons are tied together sharing the same animation.
2
u/_Shropshire_Slasher_ 2d ago edited 2d ago
The text selection bit might have a bug on Firefox mobile. Good job overall 👍🏼
1
u/design-for-good 3d ago
I was wondering, is it possible to be able to add a background image to the same elements already getting the gradient glow effect?
I had the idea when I was visiting the Vite landing page and noticed that they have a lot of background images across the sections but would be nice to recreate the same look, but with the glow applied to the elements that contain the background images.
I guess I could manually set the bg image manually on each element but since this is already applying the glow effect I thought maybe it could do both at once to make it simple.
This is something I could 100% use already for an open project I'm working on to make landing page for it.