Editorial Punctuation Swing
Only punctuation and symbols move within an editorial heading, preserving word readability.
Only punctuation and symbols move within an editorial heading, preserving word readability.
Live Demo
Hover over the element or use Tab to focus.
Source Code
Copy the HTML, CSS or JavaScript you need for your project.
<a class="tbx-1171" href="#article" aria-label="Read Notes on Form article"><span>Notes on Form</span><span class="tbx-1171__mark" aria-hidden="true">.</span><small>— ISSUE 04</small></a>
.tbx-1171{display:inline-flex;align-items:baseline;gap:1px;position:relative;text-decoration:none;color:#192c3c;font:600 29px/1.2 Georgia,serif;letter-spacing:-.055em;padding:22px 5px 12px;max-width:100%}.tbx-1171__mark{display:inline-block;color:#e87563;font-size:42px;line-height:0;transform-origin:50% 80%;transition:transform .5s cubic-bezier(.2,.9,.3,1)}.tbx-1171 small{align-self:flex-start;margin-left:9px;font:700 9px/1.4 system-ui;letter-spacing:.12em;color:#688391;white-space:nowrap}.tbx-1171::after{content:'';height:1px;background:#b1c5ca;position:absolute;left:4px;right:6px;bottom:6px;transform:scaleX(.15);transform-origin:left;transition:transform .48s}.tbx-1171:is(:hover,:focus-visible) .tbx-1171__mark{transform:rotate(-42deg) translate(1px,-13px)}.tbx-1171:is(:hover,:focus-visible)::after{transform:scaleX(1)}.tbx-1171:focus-visible{outline:3px solid #197888;outline-offset:3px}@media(max-width:350px){.tbx-1171{font-size:24px}.tbx-1171 small{display:none}}
@media (prefers-reduced-motion: reduce) { .tbx-1171, .tbx-1171 *, .tbx-1171::before, .tbx-1171::after, .tbx-1171 *::before, .tbx-1171 *::after { transition-duration:.01ms !important; animation-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 articles and editorial layouts.
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.