PRACTICAL WEB TIP
Case Result Reveal
Key outcome figures rise from the bottom of a case-study card.
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
<div tabindex="0" class="tbx-1295" role="group" aria-label="Website renewal case study and results"><span class="tbx-1295__eyebrow">CASE STUDY / 2026</span><strong>Website<br>renewal.</strong><span class="tbx-1295__rule"></span><div class="tbx-1295__result"><small>AVERAGE ENGAGEMENT</small><b>+38<span>%</span></b></div><span class="tbx-1295__arrow">↗</span></div>
CSS
*{box-sizing:border-box}
.tbx-1295{width:284px;max-width:100%;height:164px;padding:17px 19px;position:relative;overflow:hidden;background:#f3f1e9;color:#23493d;border-radius:10px;border:1px solid #dddcd2;cursor:default;font-family:system-ui,sans-serif}.tbx-1295__eyebrow{font-size:9px;letter-spacing:.17em;color:#708e7d;font-weight:800}.tbx-1295>strong{display:block;font-size:27px;line-height:1.08;letter-spacing:-.055em;margin-top:16px;transition:transform .4s}.tbx-1295__rule{display:block;width:85%;height:1px;background:#abbbb0;margin-top:17px;transition:width .4s}.tbx-1295__result{position:absolute;bottom:0;left:0;right:0;height:96px;display:flex;align-items:center;justify-content:space-between;padding:15px 20px;background:#255547;color:white;transform:translateY(101%);transition:transform .42s}.tbx-1295__result small{max-width:110px;line-height:1.6;font-size:9px;letter-spacing:.11em}.tbx-1295__result b{font-size:42px;letter-spacing:-.07em}.tbx-1295__result b span{font-size:20px}.tbx-1295__arrow{position:absolute;top:13px;right:16px;font-size:20px;transition:transform .4s}.tbx-1295:hover .tbx-1295__result,.tbx-1295:focus-visible .tbx-1295__result{transform:translateY(0)}.tbx-1295:hover .tbx-1295__arrow,.tbx-1295:focus-visible .tbx-1295__arrow{transform:translate(3px,-3px)}.tbx-1295:focus-visible{outline:3px solid #5a9774;outline-offset:4px}
@media (prefers-reduced-motion:reduce){.tbx-1295 *,.tbx-1295::before,.tbx-1295::after{animation:none!important;transition:none!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 portfolio galleries and business sections.
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.