diff --git a/src/app/globals.css b/src/app/globals.css index 81748d8..b14999b 100644 --- a/src/app/globals.css +++ b/src/app/globals.css @@ -137,11 +137,11 @@ pointer-events: none; z-index: 1; /* Physical Optical Inversion & 3D Cylindrical Vertical Curvature */ - transform: perspective(380px) rotateX(7deg) scaleY(-1.08) scaleX(1.015); + transform: perspective(360px) rotateX(8deg) scaleY(-1.12) scaleX(1.02); transform-origin: center center; - opacity: 0.6; + opacity: 0.75; mix-blend-mode: luminosity; - filter: url("#liquid-glass-vertical-refraction") blur(0.25px) contrast(122%) saturate(215%) brightness(1.05); + filter: url("#liquid-glass-vertical-refraction") blur(0.2px) contrast(124%) saturate(220%) brightness(1.05); contain: strict; will-change: transform; } diff --git a/src/components/ui/Navbar.tsx b/src/components/ui/Navbar.tsx index 0006289..fc8f3c5 100644 --- a/src/components/ui/Navbar.tsx +++ b/src/components/ui/Navbar.tsx @@ -19,6 +19,7 @@ export function Navbar({ config, currentLocale }: NavbarProps) { const pathname = usePathname(); const navRef = useRef(null); const mirrorRef = useRef(null); + const waveOffsetRef = useRef(null); useEffect(() => { const handleScroll = () => { @@ -40,6 +41,12 @@ export function Navbar({ config, currentLocale }: NavbarProps) { mirrorRef.current.style.left = `-${navRect.left}px`; mirrorRef.current.style.transform = `translate3d(0, -${scrollY + navRect.top}px, 0)`; + + // Dynamically ripple and displace the vertical liquid wave as text moves through the navbar + if (waveOffsetRef.current) { + const offset = (scrollY * 0.45) % 200; + waveOffsetRef.current.setAttribute('dy', offset.toString()); + } }; // Populate inverted reflection mirror with a lightweight visual clone of
@@ -104,10 +111,12 @@ export function Navbar({ config, currentLocale }: NavbarProps) {