PRACTICAL WEB TIP
Elastic Chevron
A compact chevron stretches and rebounds, giving directional links a touch of momentum.
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
<button class="tbx-1035" type="button"><span>Next page</span><span class="tbx-1035__circle" aria-hidden="true"><span class="tbx-1035__chev"></span></span></button>
CSS
.tbx-1035{display:inline-flex;align-items:center;gap:14px;padding:7px 5px;border:0;background:transparent;color:#21465b;font:700 14px/1.4 system-ui,sans-serif;cursor:pointer}
.tbx-1035__circle{display:grid;place-items:center;width:44px;height:44px;border:1px solid #bcd4db;border-radius:50%;background:#e9f5f5}
.tbx-1035__chev{display:block;width:12px;height:12px;border-right:2px solid #22627a;border-top:2px solid #22627a;transform:translateX(-2px) rotate(45deg);transition:transform .42s cubic-bezier(.16,1.45,.35,1)}
.tbx-1035:is(:hover,:focus-visible) .tbx-1035__chev{transform:translateX(5px) scale(1.25,.78) rotate(45deg)}
.tbx-1035:focus-visible{outline:3px solid #855fc2;outline-offset:4px}
@media(prefers-reduced-motion:reduce){.tbx-1035__chev{transition:none}}
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 calls to action.
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.