Paperclip Attachment Lift
A paperclip line drawing rises to expose a short attachment label.
A paperclip line drawing rises to expose a short attachment label.
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 href="#attachments" class="tbx-1155"><span class="tbx-1155__symbol" aria-hidden="true"><svg viewBox="0 0 56 56" width="56" height="56" fill="none"><path d="M35 17 22 34a8 8 0 0 0 13 10L49 25a13 13 0 0 0-21-16L11 31a18 18 0 0 0 29 21" stroke="currentColor" stroke-width="3.8" stroke-linecap="round" stroke-linejoin="round"/></svg></span><span class="tbx-1155__copy"><strong>ATTACHMENTS</strong><small>View document</small></span><span class="tbx-1155__badge">PDF × 3</span></a>
.tbx-1155{box-sizing:border-box;position:relative;display:flex;align-items:center;gap:12px;width:min(310px,100%);min-height:109px;padding:16px 17px;border:1px solid #94b7c7;border-radius:12px;background:#e4f1f6;color:#1c526b;text-decoration:none;font-family:system-ui,sans-serif;overflow:hidden}
.tbx-1155__symbol{display:grid;place-items:center;flex:none;transform:translateY(0) rotate(0);transition:transform .48s cubic-bezier(.2,.8,.2,1)}.tbx-1155__symbol svg{width:47px;height:47px}
.tbx-1155__copy{display:grid;gap:7px}.tbx-1155 strong{font-size:14px;letter-spacing:.05em}.tbx-1155 small{font-size:11px;color:#4a7787}
.tbx-1155__badge{position:absolute;right:13px;top:10px;font-size:9px;padding:5px 7px;background:#256987;border-radius:4px;color:#fff;font-weight:750;opacity:0;transform:translateY(-13px);transition:transform .38s,opacity .38s}
.tbx-1155:is(:hover,:focus-visible) .tbx-1155__symbol{transform:translateY(-7px) rotate(-12deg)}.tbx-1155:is(:hover,:focus-visible) .tbx-1155__badge{transform:translateY(0);opacity:1}
.tbx-1155:focus-visible{outline:3px solid #256987;outline-offset:4px}
@media (prefers-reduced-motion: reduce) { .tbx-1155, .tbx-1155 *, .tbx-1155::before, .tbx-1155::after, .tbx-1155 *::before, .tbx-1155 *::after { animation-duration:.01ms !important;transition-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 download sections and documentation 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.