Iris Shutter Badge
Six shutter blades rotate apart to open an aperture inside a gallery icon.
Six shutter blades rotate apart to open an aperture inside a gallery icon.
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-1131" href="#gallery"><span class="tbx-1131__iris" aria-hidden="true"><i></i><i></i><i></i><i></i><i></i><i></i><b>↗</b></span><span><strong>VIEW GALLERY</strong><small>View gallery</small></span></a>
.tbx-1131{width:min(281px,100%);height:102px;padding:13px 18px;display:flex;align-items:center;gap:15px;border:1px solid #c6d5df;border-radius:9px;background:#ebf2f5;color:#274e63;text-decoration:none;font-family:system-ui,sans-serif}.tbx-1131__iris{position:relative;width:70px;height:70px;flex:none;border-radius:50%;background:#315c71;overflow:hidden;border:4px solid #6c9b9f}.tbx-1131__iris i{position:absolute;inset:0;background:#acd1cb;clip-path:polygon(50% 50%,39% 0,61% 0);transform-origin:center;transition:transform .48s cubic-bezier(.2,.8,.2,1),opacity .48s}.tbx-1131__iris i:nth-child(2){transform:rotate(60deg)}.tbx-1131__iris i:nth-child(3){transform:rotate(120deg)}.tbx-1131__iris i:nth-child(4){transform:rotate(180deg)}.tbx-1131__iris i:nth-child(5){transform:rotate(240deg)}.tbx-1131__iris i:nth-child(6){transform:rotate(300deg)}.tbx-1131__iris b{position:absolute;inset:0;display:grid;place-items:center;color:#fff;font-size:29px;font-weight:400;transform:scale(.35) rotate(-30deg);opacity:0;transition:transform .48s,opacity .35s}.tbx-1131>span:last-child{display:flex;flex-direction:column;gap:5px}.tbx-1131 strong{font-size:12px;letter-spacing:.1em}.tbx-1131 small{font-size:9px;color:#6a899a}.tbx-1131:is(:hover,:focus-visible) .tbx-1131__iris i{opacity:.18}.tbx-1131:is(:hover,:focus-visible) .tbx-1131__iris i:nth-child(1){transform:rotate(35deg)}.tbx-1131:is(:hover,:focus-visible) .tbx-1131__iris i:nth-child(2){transform:rotate(95deg)}.tbx-1131:is(:hover,:focus-visible) .tbx-1131__iris i:nth-child(3){transform:rotate(155deg)}.tbx-1131:is(:hover,:focus-visible) .tbx-1131__iris i:nth-child(4){transform:rotate(215deg)}.tbx-1131:is(:hover,:focus-visible) .tbx-1131__iris i:nth-child(5){transform:rotate(275deg)}.tbx-1131:is(:hover,:focus-visible) .tbx-1131__iris i:nth-child(6){transform:rotate(335deg)}.tbx-1131:is(:hover,:focus-visible) .tbx-1131__iris b{transform:scale(1) rotate(0);opacity:1}.tbx-1131:focus-visible{outline:3px solid #6c9b9f;outline-offset:4px}@media(prefers-reduced-motion:reduce){.tbx-1131 *{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 iconography sections and ui components 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.