PRACTICAL WEB TIP
Duotone Photo Wash
A warm duotone overlay gradually clears to show the photograph's original colors.
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
<a class="tbx-1102" href="#portrait" aria-label="View portrait project"><span class="tbx-1102__scene" aria-hidden="true"><i class="tbx-1102__window"></i><i class="tbx-1102__head"></i><i class="tbx-1102__body"></i></span><span class="tbx-1102__tint" aria-hidden="true"></span><span class="tbx-1102__text"><small>PORTRAITS — 2026</small><strong>Portrait Study</strong></span></a>
CSS
.tbx-1102{display:block;width:min(280px,100%);height:184px;overflow:hidden;position:relative;color:#fff;text-decoration:none;border-radius:7px;font-family:system-ui,sans-serif;background:#3a7779;isolation:isolate}
.tbx-1102__scene{position:absolute;inset:0;background:linear-gradient(128deg,#97d0c0 0 36%,#3b91a1 36% 56%,#507a8f 56%);transition:filter .55s,transform .55s}
.tbx-1102__window{position:absolute;top:16px;left:14px;width:90px;height:120px;border:6px solid #e5e6c3;border-radius:50% 50% 0 0;opacity:.75}.tbx-1102__head{position:absolute;top:34px;right:62px;width:68px;height:72px;border-radius:55% 50% 47% 55%;background:#e6a57e;box-shadow:8px -7px 0 #244f63}.tbx-1102__body{position:absolute;top:93px;right:22px;width:145px;height:125px;border-radius:46% 35% 0 0;background:#233e5a}
.tbx-1102__tint{position:absolute;inset:0;background:linear-gradient(112deg,#d67f51b9,#a84d65aa);mix-blend-mode:color;opacity:.88;transition:opacity .65s,clip-path .65s;clip-path:inset(0 0 0 0)}
.tbx-1102__text{position:absolute;left:0;bottom:0;right:0;padding:23px 13px 13px;display:flex;flex-direction:column;gap:5px;background:linear-gradient(transparent,#102c3a98)}.tbx-1102__text small{letter-spacing:.12em;font-size:9px}.tbx-1102__text strong{font:700 17px Georgia,serif}
.tbx-1102:is(:hover,:focus-visible) .tbx-1102__tint{opacity:0;clip-path:inset(0 100% 0 0)}.tbx-1102:is(:hover,:focus-visible) .tbx-1102__scene{transform:scale(1.045)}
.tbx-1102:focus-visible{outline:3px solid #e9c08f;outline-offset:3px}@media(prefers-reduced-motion:reduce){.tbx-1102 *{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 portfolio galleries and photography portfolios.
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.