Gallery · 12 of 33
Ink Spread
SVG path morph reveal
<div class="ink-spread">
<img src="https://picsum.photos/id/65/800/600" alt="Girl">
<svg class="ink-mask" viewBox="0 0 100 100" preserveAspectRatio="none">
<path d="M0 0 H100 V100 H0 Z" />
</svg>
</div>
.ink-spread {
position: relative;
width: 400px;
aspect-ratio: 4 / 3;
overflow: hidden;
border-radius: 12px;
}
.ink-spread img {
width: 100%;
height: 100%;
object-fit: cover;
display: block;
}
.ink-mask {
position: absolute;
bottom: 0; left: 0;
width: 100%; height: 100%;
fill: #0a0a0f;
transform: scaleY(1);
transform-origin: bottom;
transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
pointer-events: none;
}
.ink-spread:hover .ink-mask {
transform: scaleY(0);
}