Double Gate Reveal
Two button shutters separate vertically to reveal an accent strip and arrow.
Two button shutters separate vertically to reveal an accent strip and 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.
<a class="tbx-1109" href="#consult"><span class="tbx-1109__flap tbx-1109__top" aria-hidden="true"></span><span class="tbx-1109__flap tbx-1109__bottom" aria-hidden="true"></span><span class="tbx-1109__content"><span><small>GET IN TOUCH</small><strong>Start with a consultation</strong></span><b aria-hidden="true">↗</b></span></a>
.tbx-1109{width:min(286px,100%);height:88px;position:relative;display:flex;align-items:center;overflow:hidden;border-radius:9px;text-decoration:none;font-family:system-ui,sans-serif;color:#fff;background:#bd846a;isolation:isolate}
.tbx-1109__flap{position:absolute;left:0;right:0;height:50%;background:#2e4951;z-index:1;transition:transform .55s cubic-bezier(.22,.8,.15,1)}.tbx-1109__top{top:0;transform-origin:top}.tbx-1109__bottom{bottom:0;transform-origin:bottom;background:#315b61}
.tbx-1109__content{z-index:2;position:relative;width:100%;display:flex;align-items:center;justify-content:space-between;padding:0 17px;gap:7px}.tbx-1109__content>span{display:flex;flex-direction:column;gap:6px}.tbx-1109 small{font-size:9px;letter-spacing:.18em;color:#e2e8e5}.tbx-1109 strong{font-size:15px;white-space:nowrap}.tbx-1109 b{font-size:25px;font-weight:400;transition:transform .55s}
.tbx-1109:is(:hover,:focus-visible) .tbx-1109__top{transform:translateY(-78%)}.tbx-1109:is(:hover,:focus-visible) .tbx-1109__bottom{transform:translateY(78%)}.tbx-1109:is(:hover,:focus-visible) b{transform:translate(3px,-3px)}
.tbx-1109:focus-visible{outline:3px solid #bd846a;outline-offset:3px}@media(prefers-reduced-motion:reduce){.tbx-1109 *{transition:none!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 calls to action and company websites.
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.