PRACTICAL WEB TIP
Vertical Reading Marker
A horizontal explanation appears beside vertical Japanese-style typography on hover.
Live Demo
Hover over the element or use Tab to focus.
Source Code
Copy the HTML, CSS or JavaScript you need for your project.
HTML
<a href="#story" class="tbx-1147"><span class="tbx-1147__vertical">Featured article</span><span class="tbx-1147__bar" aria-hidden="true"></span><span class="tbx-1147__horizontal"><small>JOURNAL / 03</small><strong>Seasonal reading</strong><span>Read article ↗</span></span></a>
CSS
.tbx-1147{box-sizing:border-box;position:relative;display:flex;align-items:center;gap:17px;width:min(290px,100%);min-height:167px;padding:14px 22px;background:#f8f1e7;border:1px solid #d7c7b0;border-radius:6px;text-decoration:none;color:#414038;overflow:hidden;font-family:system-ui,sans-serif}
.tbx-1147__vertical{writing-mode:vertical-rl;letter-spacing:.2em;font-size:19px;font-weight:800;transition:transform .48s}
.tbx-1147__bar{height:104px;width:1px;background:#a8aa87;transform-origin:bottom;transition:transform .48s}
.tbx-1147__horizontal{display:grid;gap:9px;opacity:.25;transform:translateX(-9px);transition:opacity .42s,transform .42s}
.tbx-1147 small{font-size:10px;letter-spacing:.15em;color:#887450}.tbx-1147 strong{font-size:17px;white-space:nowrap}.tbx-1147__horizontal>span{font-size:12px;color:#7d6044}
.tbx-1147:is(:hover,:focus-visible) .tbx-1147__vertical{transform:translateY(-5px)}.tbx-1147:is(:hover,:focus-visible) .tbx-1147__bar{transform:scaleY(.55)}.tbx-1147:is(:hover,:focus-visible) .tbx-1147__horizontal{opacity:1;transform:translateX(0)}
.tbx-1147:focus-visible{outline:3px solid #9e805b;outline-offset:4px}
@media (prefers-reduced-motion: reduce) { .tbx-1147, .tbx-1147 *, .tbx-1147::before, .tbx-1147::after, .tbx-1147 *::before, .tbx-1147 *::after { animation-duration:.01ms !important;transition-duration:.01ms !important;scroll-behavior:auto !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 editorial layouts and navigation menus.
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.