From c8e89e17251a97b60209a9efecb1b3788f3b56a7 Mon Sep 17 00:00:00 2001 From: "j.foucher" Date: Fri, 15 May 2026 08:26:18 +0200 Subject: [PATCH] style(home): transparent header at top, opaque navy on scroll MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit On the home page only, the header sits transparently over the 100vh video hero so the cinematic background is fully visible. As soon as the user scrolls, Bricks's native sticky JS adds the `.on-scroll` class to #brx-header — we fade in the navy background + a soft shadow over 350ms for a polished cinematic feel. Implementation : pure CSS via wp_head(), gated on is_front_page() so other pages keep their solid navy header. Extras : - A subtle navy gradient (rgba 0.55 → 0) layered behind the menu at the very top via ::before, keeping nav text readable on bright video frames. Fades out once .on-scroll kicks in (gradient redundant once bg is solid). - Box-shadow on scrolled state (0 2px 14px rgba(0,0,0,0.22)) so the header lifts off the page content visually. Co-Authored-By: Claude Opus 4.7 (1M context) --- tools/av-header-transparent-on-home.php | 55 +++++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 tools/av-header-transparent-on-home.php diff --git a/tools/av-header-transparent-on-home.php b/tools/av-header-transparent-on-home.php new file mode 100644 index 0000000..20fcfb4 --- /dev/null +++ b/tools/av-header-transparent-on-home.php @@ -0,0 +1,55 @@ + + +