Folded Photo Index
A photograph's lower corner folds over to show its project number and metadata.
A photograph's lower corner folds over to show its project number and metadata.
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-1198" href="#project" aria-label="View project number 18"><span class="tbx-1198__art"><svg viewBox="0 0 320 190" preserveAspectRatio="xMidYMid slice" xmlns="http://www.w3.org/2000/svg" aria-hidden="true"><defs><linearGradient id="sky1198" x2="0" y2="1"><stop stop-color="#91c5ca"/><stop offset="1" stop-color="#e8dbb0"/></linearGradient></defs><rect width="320" height="190" fill="url(#sky1198)"/><circle cx="228" cy="55" r="29" fill="#ffe7ab"/><path d="M0 131 60 63 125 133 167 84 222 144 271 100 320 147V190H0" fill="#64899a"/><path d="M0 162 77 113 148 178 220 118 320 171V190H0" fill="#34556f"/><path d="M0 181Q76 153 155 174T320 165V190H0" fill="#183e58"/></svg></span><span class="tbx-1198__corner" aria-hidden="true"></span><span class="tbx-1198__meta"><small>PROJECT 018</small><b>A small house by the sea</b></span></a>
.tbx-1198{display:block;position:relative;overflow:hidden;width:274px;max-width:100%;height:180px;background:#8fc4c9;border:4px solid white;box-shadow:0 8px 19px #14384d2f;box-sizing:border-box;text-decoration:none;color:white}.tbx-1198__art,.tbx-1198__art svg{position:absolute;inset:0;width:100%;height:100%}.tbx-1198__corner{position:absolute;right:0;bottom:0;width:73px;height:73px;background:linear-gradient(135deg,#d1b480 49.7%,#fcf4dc 50%);clip-path:polygon(100% 0,100% 100%,0 100%);transform:translate(90%,90%);transition:transform .46s cubic-bezier(.22,.8,.22,1);z-index:2}.tbx-1198__meta{position:absolute;bottom:0;left:0;right:0;padding:16px 13px 10px;background:linear-gradient(transparent,#062d45cc);display:flex;flex-direction:column;gap:2px;transform:translateY(32px);transition:transform .4s}.tbx-1198__meta small{letter-spacing:.14em;font:650 9px system-ui}.tbx-1198__meta b{font:700 13px system-ui}.tbx-1198:is(:hover,:focus-visible) .tbx-1198__corner{transform:translate(0,0)}.tbx-1198:is(:hover,:focus-visible) .tbx-1198__meta{transform:translateY(0)}.tbx-1198:focus-visible{outline:3px solid #d09254;outline-offset:3px}
@media (prefers-reduced-motion: reduce) {.tbx-1198,.tbx-1198 *,.tbx-1198::before,.tbx-1198::after,.tbx-1198 *::before,.tbx-1198 *::after{transition-duration:.01ms!important;animation-duration:.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 portfolio galleries and image galleries.
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.