Ink Spread Button
Elegant button where hover feels like ink spreading across paper with organic diffusion
Embed this component
Paste this snippet into any site — the design renders in a sandboxed iframe served from /embed/ink-spread-button.
<iframe src="/embed/ink-spread-button" sandbox="allow-scripts" loading="lazy" title="Ink Spread Button" style="border:0;width:100%;height:480px;overflow:hidden"></iframe>Implementation code
Copy the HTML and CSS for Ink Spread Button, or grab a framework-specific implementation. The HTML and CSS variants are self-contained; framework variants assume that framework's project setup.
HTML
<button class="ink-button"><span>INK</span></button>CSS
.ink-button {
position: relative;
padding: 1rem 2rem;
font-weight: 700;
letter-spacing: 0.05em;
background: transparent;
color: #f1f5f9;
border: 2px solid rgba(255,255,255,0.15);
cursor: pointer;
overflow: hidden;
transition: color 0.4s ease-out, border-color 0.4s ease-out;
}
.ink-button::before {
content: ''; position: absolute; inset: 0;
background: #f1f5f9;
transform: scaleX(0) scaleY(0);
transition: transform 0.5s cubic-bezier(0.25,0.46,0.45,0.94);
pointer-events: none;
}
.ink-button:hover { color: #0f172a; border-color: #f1f5f9; }
.ink-button:hover::before { transform: scaleX(1) scaleY(1); }
.ink-button:active { transform: scale(0.97); }
.ink-button span { position: relative; z-index: 10; }Tailwind CSS
<button class="px-8 py-4 font-bold tracking-wide bg-transparent text-slate-100 border-2 border-white/15 hover:text-slate-900 hover:border-white active:scale-97 transition-all duration-400 overflow-hidden relative">
<span class="relative z-10">INK</span>
<div class="absolute inset-0 bg-slate-100 pointer-events-none origin-center" style="transform: scaleX(0) scaleY(0); transition: transform 0.5s cubic-bezier(0.25,0.46,0.45,0.94);" />
</button>React
function InkButton() {
return (
<motion.button
className="px-8 py-4 font-bold tracking-wide relative overflow-hidden"
style={{ background: 'transparent', color: '#f1f5f9', border: '2px solid rgba(255,255,255,0.15)', borderRadius: 0, cursor: 'pointer' }}
whileHover={{ color: '#0f172a', borderColor: '#f1f5f9' }}
whileTap={{ scale: 0.97 }}
transition={{ duration: 0.4 }}
>
<span style={{ position: 'relative', zIndex: 10 }}>INK</span>
<motion.div
style={{ position: 'absolute', inset: 0, background: '#f1f5f9' }}
initial={{ scaleX: 0, scaleY: 0, opacity: 0 }}
whileHover={{ scaleX: 1, scaleY: 1, opacity: 1 }}
transition={{ duration: 0.5, ease: [0.25, 0.46, 0.45, 0.94] }}
/>
</motion.button>
);
}LWC — HTML template
<template><button class="ink-button" onclick={handleClick}><span style="position:relative;z-index:10"><slot>INK</slot></span></button></template>LWC — JavaScript
import { LightningElement, api } from 'lwc';
export default class InkButton extends LightningElement {
@api label = 'INK';
handleClick() { this.dispatchEvent(new CustomEvent('buttonclick', { bubbles: true, composed: true })); }
}LWC — CSS
.ink-button { position: relative; padding: 1rem 2rem; font-weight: 700; letter-spacing: 0.05em; background: transparent; color: #f1f5f9; border: 2px solid rgba(255,255,255,0.15); cursor: pointer; overflow: hidden; transition: color 0.4s ease-out, border-color 0.4s ease-out; }
.ink-button::before { content: ''; position: absolute; inset: 0; background: #f1f5f9; transform: scaleX(0) scaleY(0); transition: transform 0.5s cubic-bezier(0.25,0.46,0.45,0.94); pointer-events: none; }
.ink-button:hover { color: #0f172a; border-color: #f1f5f9; }
.ink-button:hover::before { transform: scaleX(1) scaleY(1); }
.ink-button:active { transform: scale(0.97); }LWC — Configuration
<?xml version="1.0" encoding="UTF-8"?>
<LightningComponentBundle xmlns="http://soap.sforce.com/2006/04/metadata">
<apiVersion>59.0</apiVersion>
<isExposed>true</isExposed>
<targets><target>lightning__AppPage</target><target>lightning__RecordPage</target><target>lightning__HomePage</target></targets>
</LightningComponentBundle>Where Ink Spread Button fits
- Editorial
- Luxury
- Minimal Websites
- Art Portfolios
Interaction states & animations
- Ink Diffusion
- Wave Expansion
- Soft Fade
- Reveal
Topics
- #ink
- #spread
- #organic
- #elegant
- #minimal
- #matte
Accessibility notes
Ink reveal animation should not prevent interaction. Ensure focus state is clearly visible.
Browser support
- All modern browsers