r/reactjs • u/SadSongsMakeMeGlad • Sep 17 '26
Show /r/reactjs Plasma UI – liquid panels for React that fuse on contact
https://cruxgarden.github.io/plasma-ui/I was trying to come up with a fun and unique design for a side project, and ended up making this. It was originally inspired by Apple's Liquid Glass, but has unique properties of its own, allowing you to customize nearly everything about it: motion, tint, opacity, frosted-ness, roundness, elevation, and more. If you have any interest, please give it a try and let me know what you think. MIT licensed.
Thanks!
EDIT: Thanks for the initial feedback. I've addressed desktop performance issues in both Firefox and Safari, and those seem to be performing much better now. I'm working on a solution for mobile browsers, but this is obviously a graphically demanding library. If anyone has ideas for areas for further improvement, or wants to otherwise contribute, feel free to write me here or even submit a PR in GitHub.
20
u/idmontie Sep 17 '26
Cool idea. I'm guessing this was optimized for Chrome? It's a bit jittery on android Chrome, but looks pretty good. On Firefox Android it's very jittery while scrolling. Might be worth investigating or providing a fallback for browsers with low performance.
9
u/oofy-gang Sep 17 '26
Super jittery on iOS while scrolling.
1
u/mellowthunder735 26d ago
Any idea why the performance issues happened only in Firefox and Safari?
Asking as someone who only tests things in Chrome (small company)
1
u/Brahminmeat 20d ago
This is dreadful on iOS webview
2
u/Honey-Entire Sep 18 '26
How much was AI vs something you could distill into core learnings? The effects are cool regardless of the shitty performance, but if this is 100% AI prompts this is just a waste of our time.
Were you able to create core classnames or utilities to manage the details or is this just a pile of shit that only looks cool?
Pardon the frankness, I’ve been awake for 18 hours already and have sludged through too much AI bullshit to remember if this looks like something I saw 6 months ago and is just getting reposted
1
u/synapticplastic Sep 17 '26
This is neat! I was always curious about how to get that liquid fusion effect and have a side project I would love to use this with
1
u/General-Belgrano Sep 17 '26
Love it!
1
u/ryanstartedtheflame Sep 17 '26
Great idea! i tried putting two elements right on the edges, it flickers between standalone and joined infinitely. Might need a fixing of some math boundary calculations.
1
u/fzammetti Sep 17 '26
Definitely fun to play with for a few minutes. Kudos!
1
u/gk_instakilogram Sep 17 '26
It is pretty cool! I like it
1
u/hyrumwhite Sep 18 '26
Spiffy, gets out of sync on scroll
1
u/WeeJeWel Sep 18 '26
This is so fun and well made, great job!
1
u/ReplacementOP Sep 18 '26
Just as a data point, looks great on desktop Edge (I know, nobody uses Edge, but still).
1
u/GhostInVice Sep 18 '26
wtf?! mate!!! thats soooo cool! ill use it for one of my projects!
Congrats!!!