PRACTICAL WEB TIP
Folded Corner CTA
The top-right corner of a button folds over to reveal a directional arrow.
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-1025" type="button"><span>View brochure</span><span class="tbx-1025__arrow" aria-hidden="true">↗</span></button>
CSS
.tbx-1025{position:relative;display:inline-flex;justify-content:center;align-items:center;gap:13px;overflow:hidden;min-width:174px;min-height:54px;padding:12px 20px;border:0;border-radius:4px;background:#204665;color:white;box-shadow:0 6px 15px #1e405225;font:650 14px/1.4 system-ui,sans-serif;cursor:pointer}
.tbx-1025::after{content:"";position:absolute;top:0;right:0;width:0;height:0;border-left:0 solid transparent;border-bottom:0 solid transparent;border-top:0 solid #f7c68c;transition:border-width .3s ease}
.tbx-1025__arrow{display:block;transform:translate(-6px,6px);opacity:0;transition:transform .3s ease,opacity .3s ease}
.tbx-1025:is(:hover,:focus-visible)::after{border-left-width:20px;border-top-width:20px}
.tbx-1025:is(:hover,:focus-visible) .tbx-1025__arrow{transform:translate(0,0);opacity:1}
.tbx-1025:focus-visible{outline:3px solid #c28bfc;outline-offset:4px}
@media(prefers-reduced-motion:reduce){.tbx-1025::after,.tbx-1025__arrow{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 calls to action and service pages.
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.