Date Fold Invitation
The corner of an event-date card folds over to reveal venue information.
The corner of an event-date card folds over to reveal venue information.
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-1235"><a class="invite" href="#tb1235"><span class="date"><strong>18</strong><small>OCT<br>2026</small></span><span class="copy"><small>UPCOMING EVENT</small><b>Creative briefing</b><em>Doors 13:30 / Free admission</em></span><span class="fold" aria-hidden="true"></span><span class="venue">PLACE<br><b>Studio A · 2F</b></span></a></div>
.tbx-1235{box-sizing:border-box;display:flex;align-items:center;justify-content:center;min-height:212px;width:100%;max-width:100%;padding:19px;overflow:hidden;font-family:system-ui,-apple-system,sans-serif;color:#18314a;}
.tbx-1235 * ,.tbx-1235 *::before,.tbx-1235 *::after{box-sizing:border-box}
.tbx-1235{background:#efece4}.tbx-1235 .invite{position:relative;display:flex;align-items:center;gap:15px;text-decoration:none;color:#2c4050;width:min(100%,315px);height:132px;background:#fff8ed;padding:17px;overflow:hidden;box-shadow:0 10px 24px #523f2c20;border:1px solid #e1d2bc}.tbx-1235 .date{align-self:stretch;display:grid;align-content:center;justify-items:center;min-width:84px;border-right:1px solid #d1c0a7;padding-right:13px}.tbx-1235 .date strong{font:800 44px Georgia,serif;color:#c66a4b;line-height:.95}.tbx-1235 .date small{font-size:10px;line-height:1.3;letter-spacing:.13em;color:#836b54}.tbx-1235 .copy{display:grid;gap:8px}.tbx-1235 .copy small{font-size:9px;letter-spacing:.13em;font-weight:800;color:#ad734b}.tbx-1235 .copy b{font-size:15px}.tbx-1235 .copy em{font-style:normal;font-size:10px;color:#8d7765}.tbx-1235 .fold{position:absolute;right:0;top:0;width:70px;height:70px;background:linear-gradient(225deg,#e1bb81 50%,transparent 51%);clip-path:polygon(100% 0,100% 100%,0 0);transform:translate(50%,-50%);transition:transform .4s}.tbx-1235 .venue{position:absolute;right:10px;top:14px;font:800 9px system-ui;letter-spacing:.1em;line-height:1.8;color:#865031;opacity:0;transform:translateY(-10px);transition:all .4s;text-align:right}.tbx-1235 .venue b{font-size:11px}.tbx-1235 .invite:is(:hover,:focus-visible) .fold{transform:translate(0,0)}.tbx-1235 .invite:is(:hover,:focus-visible) .venue{opacity:1;transform:translateY(0)}.tbx-1235 .invite:focus-visible{outline:3px solid #9a572c;outline-offset:5px}
@media(prefers-reduced-motion:reduce){.tbx-1235 *, .tbx-1235 *::before,.tbx-1235 *::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 event pages 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.