Share Sheet Modal
A pale share sheet with a row of app targets rises over a dimmed page and its icons hop in sequence on hover.
- lines of CSS
- 48lines of CSS
- dependencies
- 0dependencies
- browser, for years
- Everybrowser, for years
- motion only on interaction
- Hovermotion only on interaction
Vue, Svelte, styled-components and Tailwind exports are part of Pro. HTML, CSS and React are free forever.
.fx-v12-mo-share-15166 {
position: relative;
width: 200px;
height: 140px;
overflow: hidden;
border-radius: 0.7rem;
background: #0f172a;
font-family: system-ui, sans-serif;
}
.fx-v12-mo-share-15166 .page {
position: absolute;
inset: 0;
background: linear-gradient(#1e293b 0 12px, transparent 12px 20px, #1e293b 20px 28px, transparent 28px 36px, #1e293b 36px 44px, transparent 44px) 12px 12px / calc(100% - 24px) 100% no-repeat;
opacity: 0.6;
transition: opacity 0.3s ease, filter 0.3s ease;
}
.fx-v12-mo-share-15166 .sheet {
position: absolute;
left: 0; right: 0; bottom: 0;
padding: 0.6rem 0.8rem 0.7rem;
background: #e0f2fe;
color: #0c4a6e;
border-radius: 0.8rem 0.8rem 0 0;
transform: translateY(8px);
box-shadow: 0 -8px 24px rgba(0,0,0,0.4);
transition: transform 0.35s cubic-bezier(0.34, 1.4, 0.64, 1);
}
.fx-v12-mo-share-15166 .sheet b { display: block; font-size: 0.72rem; margin-bottom: 0.5rem; }
.fx-v12-mo-share-15166 .grid { display: flex; gap: 0.6rem; }
.fx-v12-mo-share-15166 .grid i {
flex: 1;
height: 32px;
display: grid;
place-items: center;
font-style: normal;
font-size: 0.95rem;
background: #fff;
border-radius: 0.5rem;
box-shadow: 0 2px 6px rgba(14,165,233,0.25);
transition: transform 0.25s ease, background 0.25s ease;
}
.fx-v12-mo-share-15166:hover .page { opacity: 0.35; filter: blur(1px); }
.fx-v12-mo-share-15166:hover .sheet { transform: translateY(0); }
.fx-v12-mo-share-15166:hover .grid i { background: #bae6fd; }
.fx-v12-mo-share-15166:hover .grid i:nth-child(1) { transform: translateY(-3px); transition-delay: 0s; }
.fx-v12-mo-share-15166:hover .grid i:nth-child(2) { transform: translateY(-3px); transition-delay: 0.05s; }
.fx-v12-mo-share-15166:hover .grid i:nth-child(3) { transform: translateY(-3px); transition-delay: 0.1s; }
.fx-v12-mo-share-15166:hover .grid i:nth-child(4) { transform: translateY(-3px); transition-delay: 0.15s; }<div class="fx-v12-mo-share-15166">
<div class="page"></div>
<div class="sheet">
<b>Share to</b>
<div class="grid">
<i>✉</i>
<i>✈</i>
<i>🔗</i>
<i>📋</i>
</div>
</div>
</div>What do I do with this?
- Put
share-sheet-modal-15167.cssanywhere your page already loads CSS from — in Next.js that isapp/globals.css, or any stylesheet with a<link>in your HTML. - Then put the class on the element you want it on:
<button class="fx-v12-mo-share-15166">. The CSS does nothing until a class name in it matches something on the page.
- Link the stylesheet, then paste the markup wherever you need it.
npx hoverlab add share-sheet-modal-15167What's included
- The markup and the stylesheet, in whichever framework you pick
- No runtime dependencies
Works with
- React
- Vue
- Svelte
- Tailwind
- styled-components
- Plain CSS
npx hoverlab add share-sheet-modal-15167
Or over MCP, from your editor's agent — no account needed.
License
Free to read, copy and install, for personal and non-commercial projects. Shipping it in client work or a paid product needs Pro ($79 once). The source lands in your repo and stops being ours — no attribution, nothing to upgrade.
Motion safety
Static estimate, read from the CSS
- Reduced motion
- Brief motion, no guard
Animates briefly or on interaction. Only looping motion gets a guard in this catalog; copy the one from the Insights tab if this ships on a critical path.
- What it animates
- Repaints
Animates
background. No reflow, but the browser repaints every frame, which is fine for one element and costly across many. - Flashing (WCAG 2.3.1)
- No flashing found
No repeating change in opacity, colour or brightness large enough to count as a flash.
- Layout shift (CLS)
- No shift expected
Nothing it animates moves or resizes the box in flow. A category from the CSS, not a measurement for this effect.
Every row is read from the shipped CSS. Only a figure marked measured came from a browser. Customizing the speed changes the timing, so recheck a customized copy. How it is computed
30 more effects in Modals & Overlays
All of them free to read, copy and install — no account, no locked tiles, no watermarked preview. The whole catalog is open, and so are the API and the CLI.
Browse Modals & OverlaysShipping one commercially
Copying the code is free. Putting it in client work or a paid product is what Pro is for — the licence, not the access.
- A commercial licence for everything in the catalog
- Unlimited bundle exports, in Vue, Svelte and Tailwind
- One payment — no subscription, nothing to renew
7 variations of Share Sheet Modal
Finished looks, each one a position in the customizer above. Copy any of them, or open it and keep moving the sliders.