Sliding Measurement CTA
Measurement marks extend along a call to action, suggesting updated dimensional values.
Measurement marks extend along a call to action, suggesting updated dimensional values.
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-1146" href="#specs"><span class="tbx-1146__text"><small>SPECIFICATION / 2026</small><strong>View dimensional drawing</strong></span><span class="tbx-1146__track" aria-hidden="true"><i></i><em>↗</em></span></a>
.tbx-1146{box-sizing:border-box;display:grid;gap:13px;width:min(294px,100%);padding:18px 20px 17px;border:1px solid #9fc1b9;border-radius:7px;background:#e9f3ef;color:#24534c;text-decoration:none;font-family:system-ui,sans-serif;transition:background .3s}
.tbx-1146__text{display:grid;gap:5px}.tbx-1146 small{font-size:9px;letter-spacing:.16em;font-weight:750}.tbx-1146 strong{font-size:17px;font-weight:800}
.tbx-1146__track{display:block;position:relative;height:27px;border-bottom:3px solid #3e8076;background:repeating-linear-gradient(90deg,#7baba1 0 1px,transparent 1px 17px) left bottom/100% 9px no-repeat;overflow:visible}
.tbx-1146__track i{position:absolute;left:5px;bottom:-3px;width:23px;height:23px;background:#28695f;border:3px solid #f9ffff;box-shadow:0 0 0 1px #28695f;border-radius:50%;transition:transform .55s cubic-bezier(.25,.8,.2,1)}
.tbx-1146__track em{position:absolute;right:0;top:-2px;font-size:22px;font-style:normal;transform:rotate(-18deg);transition:transform .5s}
.tbx-1146:is(:hover,:focus-visible){background:#d6ebe3}.tbx-1146:is(:hover,:focus-visible) .tbx-1146__track i{transform:translateX(220px)}.tbx-1146:is(:hover,:focus-visible) .tbx-1146__track em{transform:rotate(0deg) translate(2px,-6px)}
.tbx-1146:focus-visible{outline:3px solid #3e8076;outline-offset:4px}
@media(max-width:420px){.tbx-1146:is(:hover,:focus-visible) .tbx-1146__track i{transform:translateX(min(220px,60vw))}}
@media (prefers-reduced-motion: reduce) { .tbx-1146, .tbx-1146 *, .tbx-1146::before, .tbx-1146::after, .tbx-1146 *::before, .tbx-1146 *::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 download sections 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.