Ghost Title Navigation
An oversized, faint label emerges behind a navigation link to guide the viewer's eye.
An oversized, faint label emerges behind a navigation link to guide the viewer's eye.
Live Demo
Hover over the element or use Tab to focus.
Source Code
Copy the HTML, CSS or JavaScript you need for your project.
<nav class="tbx-1093" aria-label="Main navigation"><a href="#work" data-label="WORK"><span class="tbx-1093__num">01</span><span class="tbx-1093__name">Selected work</span><span class="tbx-1093__arrow" aria-hidden="true">↗</span><b aria-hidden="true">WORK</b></a><a href="#studio"><span class="tbx-1093__num">02</span><span class="tbx-1093__name">Studio</span><span class="tbx-1093__arrow" aria-hidden="true">↗</span><b aria-hidden="true">ABOUT</b></a><a href="#contact"><span class="tbx-1093__num">03</span><span class="tbx-1093__name">Contact</span><span class="tbx-1093__arrow" aria-hidden="true">↗</span><b aria-hidden="true">HELLO</b></a></nav>
.tbx-1093{width:min(282px,100%);padding:11px;background:#edf0ed;font-family:system-ui,sans-serif}
.tbx-1093 a{position:relative;display:flex;align-items:center;gap:13px;min-height:62px;padding:0 14px;border-bottom:1px solid #bfcac4;color:#28483f;text-decoration:none;overflow:hidden;isolation:isolate}.tbx-1093 a:last-child{border-bottom:0}
.tbx-1093__num,.tbx-1093__name,.tbx-1093__arrow{position:relative;z-index:1}.tbx-1093__num{font-size:10px;color:#82988c;font-weight:800}.tbx-1093__name{font-size:14px;font-weight:720;transition:transform .3s}.tbx-1093__arrow{margin-left:auto;font-size:20px;opacity:.4;transition:transform .3s,opacity .3s}
.tbx-1093 a b{position:absolute;right:-5px;top:50%;transform:translateY(-35%) translateX(13px);font-size:43px;font-weight:950;letter-spacing:-.08em;color:#b7d4c16e;opacity:0;transition:opacity .36s,transform .36s;z-index:0;pointer-events:none}
.tbx-1093 a:is(:hover,:focus-visible) b{opacity:1;transform:translateY(-50%) translateX(0)}.tbx-1093 a:is(:hover,:focus-visible) .tbx-1093__name{transform:translateX(5px)}.tbx-1093 a:is(:hover,:focus-visible) .tbx-1093__arrow{transform:translate(3px,-3px);opacity:1}
.tbx-1093 a:focus-visible{outline:3px solid #c58b61;outline-offset:-3px}@media(prefers-reduced-motion:reduce){.tbx-1093 *{transition:none!important}}
How to Use
Insert the HTML and add the CSS to your stylesheet. Adjust colors and sizes and avoid class conflicts.
Use Case
Useful for navigation menus and portfolio galleries.
Technical Notes
Keep controls usable on touch devices. Test keyboard focus and reduced-motion preferences.
Mobile: Ensure the interactive content remains accessible without hover on touch devices.
Browser: Uses modern CSS. Check behavior in the browsers you support.
Reduced Motion: Check that prefers-reduced-motion is respected.