Folded Action Bar
A folded information strip opens above an estimate CTA to show the expected completion time.
A folded information strip opens above an estimate CTA to show the expected completion time.
Live Demo
Hover over the element or use Tab to focus.
Source Code
Copy the HTML, CSS or JavaScript you need for your project.
<div class="tbx-1253"><button class="cta" type="button"><span class="top"><span class="icon">↗</span><span class="main">GET AN ESTIMATE</span></span><span class="detail">We usually reply within one business day <b>→</b></span></button></div>
.tbx-1253{box-sizing:border-box;display:flex;align-items:center;justify-content:center;width:100%;max-width:100%;min-height:218px;overflow:visible;padding:24px 18px;font-family:system-ui,-apple-system,"Segoe UI",sans-serif;color:#243e43}
.tbx-1253 *,.tbx-1253 *::before,.tbx-1253 *::after{box-sizing:border-box}
.tbx-1253{background:#eaf0ea}
.tbx-1253 .cta{appearance:none;position:relative;border:0;background:#244638;color:#fff;width:min(286px,100%);padding:0;border-radius:5px;cursor:pointer;overflow:hidden;text-align:left;box-shadow:0 9px 20px #1f3b3820}
.tbx-1253 .top{height:62px;display:flex;align-items:center;gap:15px;padding:0 20px}
.tbx-1253 .icon{border:1px solid #a1b9a6;border-radius:50%;display:grid;place-items:center;width:29px;height:29px;transition:transform .35s}
.tbx-1253 .main{font-size:12px;font-weight:750;letter-spacing:.12em}
.tbx-1253 .detail{display:flex;align-items:center;justify-content:space-between;background:#d3dcba;color:#213b33;font-size:10px;letter-spacing:.04em;line-height:1.3;max-height:0;padding:0 20px;opacity:0;transition:max-height .38s,padding .38s,opacity .32s}
.tbx-1253 .detail b{font-size:22px;font-weight:400}
.tbx-1253 .cta:is(:hover,:focus-visible) .detail{max-height:60px;padding:12px 20px;opacity:1}
.tbx-1253 .cta:is(:hover,:focus-visible) .icon{transform:rotate(45deg)}
@media (prefers-reduced-motion: reduce) {.tbx-1253 *, .tbx-1253 *::before, .tbx-1253 *::after { transition-duration:0.01ms !important; animation-duration:0.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 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.