Layers missplaced, Not working, like having a flex missplaced within the component. #13
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Browser: Arc, still the same over safari chrome or whatever
Tech Stack: NextJs .TS
Installation:
Before Liquid Glass Component:
https://github.com/user-attachments/assets/16dab094-9705-41b6-818d-885036c7a963
After Liquid Glass component:
https://github.com/user-attachments/assets/c53d809c-b921-4e83-a0a1-daf08c8e2962
ps for reference
lmk if you need anything else :)
I have this problem too
this is my solution with which i simultaneously remove the navigatior is undefined error that can occur:
and then I use it as follows
this is the extended version of my base component:
and this is the change i made for the ref. first i added the following to the interface “LiquidGlassProps”:
then I have components from this one in "LiquidGlass":
made the following:
and so as not to forget, I have of course also included the ref from the props here:
I hope this helps some of you
This is my code example to show the button with a background.:
this is what it would look like if i didn't take the real height and width:
and this is what it looks like with the real height and width:
This library kind of only works by using
position: 'fixed'or'sticky'. I spent half a day fixing it up and making it work well withposition: 'absolute'and'relative'. Try out@nkzw/liquid-glassif you like and see if that fixes your styling issues.I'm having the same problem:
From the devtools it seems like the layers are mismatched.
Here's the code:
This really fixed my positioning issues. Great job!!
This literally solved the problem I’d been trying to fix for over 2–3 hours. You’re the man!
The
@nkzw/liquid-glassreally solves the layers placement. However issues remain.Most importantly using
transformon the LiquidGlass interferes with the refraction visuals and removes them. This is important as it renders the LiquidGlass completely unusable in moving elements like carousels, nav bars, etc. Also tried different workarounds likeclip-pathandtransition. Although, their animation feel is quite poor, it would have been acceptable but they still didn't work.