Blob Animations and Morphing Shapes in CSS and SVG
Updated 2026-10-16. 8 effects.
A blob animation is a soft organic shape that seems to change outline as it moves. The cheap way to build one is to layer a few fixed rounded shapes and rotate, scale and crossfade them at different speeds, so the silhouette appears to morph. Every blob below works that way and stops on a settled shape for reduced motion.
Most tutorials morph a blob by animating border-radius or an SVG path's d value. Both redraw the shape on every frame, and the CSS d property has no support in Safari according to MDN's compatibility data. These pieces get the same fluid look from several static outlines that turn and fade over one another, which works in every current browser.
Use a blob where a page needs warmth without a photo: behind a portrait, as a frame for a product shot, as a soft badge for a single figure or as a quiet shape next to a headline. Keep it behind the content and low in contrast so text on top stays easy to read.
Compare them
| Effect | Built with | Size (gzipped) | Running cost | Browser support |
|---|---|---|---|---|
| Balanced Pebble Cluster Beside Opening Hours | CSS only | 2.7 KB | Six small gradient paths rock by a few degrees and one shadow ellipse fades; all of it pauses off screen. | All current browsers |
| Blob From Three Crossfading SVG Outlines | CSS only | 2.4 KB | Three fixed paths fade and turn a few degrees in turn, so at most two are changing at any moment. | All current browsers |
| Figure Badge Inside Layered Ink Blob | CSS only | 2.1 KB | Two filled paths and one outline rotate on separate slow cycles; the circle under the figure never moves. | All current browsers |
| Hero Corner With Two Tinted CSS Blobs | CSS only | 1.9 KB | Three plain elements with fixed corner radii rotate and scale; the radii themselves are never animated. | All current browsers |
| Morphing Outline Ring Around Listen Button | CSS only | 2.2 KB | Three thin stroked paths rotate and scale; the play button only scales on hover. | All current browsers |
| Portrait Framed By Breathing Blob Shapes | CSS only | 2.3 KB | Three fixed SVG paths only rotate and scale, and their keyframes pause once the section leaves the screen. | All current browsers |
| Product Photo On Soft Morphing Blob Plate | CSS only | 2.3 KB | Two gradient-filled paths are painted once and then only turned and scaled; nothing is blurred live. | All current browsers |
| Slow Navy Blob Behind Client Quote | CSS only | 1.9 KB | Two large paths stretched to the quote box turn by a few degrees over 23 and 30 seconds, which changes very few pixels per frame. | All current browsers |
Balanced Pebble Cluster Beside Opening Hours
A bathhouse hours card with a small stack of stones beside the timetable. Each stone is a squashed blob with its own lit gradient, and each rocks a degree or two on a different cycle, so the pile looks balanced but alive while the ground shadow softly fades. On phones the stack shrinks and sits above the hours.
<section class="m2peb" aria-labelledby="m2peb-h">
<div class="m2peb-card">
<div class="m2peb-stage">
<svg class="m2peb-svg" viewBox="0 180 200 168" aria-hidden="true">
<defs>
<radialGradient id="m2peb-g1" cx="40%" cy="30%" r="80%"><stop offset="0" stop-color="#c9c0b1"/><stop offset="1" stop-color="#8f8576"/></radialGradient>
<radialGradient id="m2peb-g2" cx="40%" cy="30%" r="80%"><stop offset="0" stop-color="#e2d6c2"/><stop offset="1" stop-color="#a9987f"/></radialGradient>
<radialGradient id="m2peb-g3" cx="40%" cy="30%" r="80%"><stop offset="0" stop-color="#9aa39b"/><stop offset="1" stop-color="#5f6a63"/></radialGradient>
<radialGradient id="m2peb-g4" cx="50%" cy="50%" r="50%"><stop offset="0" stop-color="#6b5d48" stop-opacity=".35"/><stop offset="1" stop-color="#6b5d48" stop-opacity="0"/></radialGradient>
</defs>
<ellipse class="m2peb-shadow" cx="100" cy="330" rx="92" ry="14" fill="url(#m2peb-g4)"/>
<g transform="translate(17.9 317.4) scale(0.168 0.081)"><path class="m2peb-s m2peb-s6" fill="url(#m2peb-g3)" d="M178.6 102.2C178.4 126.6 156.9 154.5 135.1 165.5C113.4 176.6 66.0 180.4 47.9 168.7C29.8 157.0 24.3 118.1 26.7 95.5C29.0 72.9 43.9 46.0 62.2 33.3C80.5 20.5 117.1 7.6 136.5 19.1C155.9 30.6 178.8 77.8 178.6 102.2Z"/></g>
<g transform="translate(143.4 309.5) scale(0.254 0.118)"><path class="m2peb-s m2peb-s5" fill="url(#m2peb-g2)" d="M183.2 92.0C183.1 115.6 156.4 165.2 137.7 178.1C119.0 190.9 89.6 180.2 71.0 169.0C52.4 157.7 26.3 133.1 26.0 110.5C25.8 88.0 50.9 46.2 69.6 33.7C88.3 21.3 119.1 26.2 138.1 35.9C157.0 45.7 183.2 68.3 183.2 92.0Z"/></g>
<g transform="translate(28.5 282.9) scale(0.726 0.279)"><path class="m2peb-s m2peb-s1" fill="url(#m2peb-g1)" d="M179.5 95.6C181.1 117.7 161.5 154.1 141.7 167.0C122.0 180.0 81.8 183.2 61.1 173.4C40.5 163.5 19.7 129.7 17.8 108.0C15.9 86.2 30.7 54.9 49.8 42.7C68.9 30.4 110.7 25.6 132.3 34.4C153.9 43.2 177.9 73.5 179.5 95.6Z"/></g>
<g transform="translate(42.1 247.9) scale(0.619 0.261)"><path class="m2peb-s m2peb-s2" fill="url(#m2peb-g2)" d="M173.1 94.8C174.3 116.8 150.9 152.3 132.1 164.2C113.3 176.2 78.8 174.8 60.3 166.5C41.8 158.1 23.0 135.1 21.1 114.1C19.2 93.1 31.5 53.9 48.8 40.2C66.1 26.6 104.1 23.2 124.8 32.3C145.6 41.4 171.9 72.8 173.1 94.8Z"/></g>
<g transform="translate(55.7 217.1) scale(0.496 0.209)"><path class="m2peb-s m2peb-s3" fill="url(#m2peb-g3)" d="M172.0 92.4C172.1 113.5 155.8 148.5 139.3 162.0C122.8 175.5 93.8 186.1 73.2 173.4C52.6 160.7 16.0 109.3 15.4 85.7C14.8 62.1 49.2 40.2 69.7 31.8C90.3 23.3 121.8 24.9 138.8 35.0C155.9 45.1 171.9 71.2 172.0 92.4Z"/></g>
<g transform="translate(65.0 194.7) scale(0.338 0.160)"><path class="m2peb-s m2peb-s4" fill="url(#m2peb-g1)" d="M185.3 106.1C186.3 129.0 160.7 157.6 139.5 169.8C118.4 182.0 77.3 190.0 58.6 179.4C39.8 168.8 27.4 129.6 27.0 106.2C26.6 82.7 38.5 50.9 56.2 38.6C73.9 26.3 111.7 20.9 133.2 32.1C154.7 43.4 184.2 83.1 185.3 106.1Z"/></g>
</svg>
</div>
<div class="m2peb-info">
<p class="m2peb-kicker">Saltmere Bathhouse</p>
<h2 class="m2peb-h" id="m2peb-h">Warm pools, a cold plunge and a quiet room with no phones.</h2>
<table class="m2peb-hours">
<caption>Opening hours</caption>
<tbody>
<tr><th scope="row">Monday to Thursday</th><td>7:00 to 21:00</td></tr>
<tr><th scope="row">Friday</th><td>7:00 to 22:00</td></tr>
<tr><th scope="row">Weekends</th><td>8:00 to 20:00</td></tr>
</tbody>
</table>
<a class="m2peb-btn" href="#">Book a two-hour session</a>
</div>
</div>
</section>
<style>
/* Change these: page colour, card colour, text colour, button colour. Stone colours live in the gradients. */
.m2peb { --m2peb-bg: #e9e2d6; --m2peb-card: #f6f2ea; --m2peb-ink: #2b2925; --m2peb-quiet: #5e584f; --m2peb-btn: #3e4943; }
.m2peb *, .m2peb *::before, .m2peb *::after { box-sizing: border-box; }
.m2peb { box-sizing: border-box; background: var(--m2peb-bg); color: var(--m2peb-ink); padding: clamp(32px, 6vw, 72px) 16px; font-family: "Inter Tight", "Inter", ui-sans-serif, system-ui, sans-serif; overflow: hidden; }
.m2peb-card { max-width: 920px; margin: 0 auto; display: grid; grid-template-columns: minmax(200px, 300px) 1fr; align-items: center; gap: clamp(24px, 5vw, 56px); padding: clamp(24px, 4vw, 44px); border-radius: 28px; background: var(--m2peb-card); }
.m2peb-stage { width: 100%; max-width: 260px; margin: 0 auto; }
.m2peb-svg { display: block; width: 100%; height: auto; overflow: visible; }
.m2peb-s { transform-box: fill-box; transform-origin: 50% 90%; }
/* Each stone rocks a degree or two on its own cycle; the shadow breathes with them. */
.m2peb-s1 { animation: m2peb-r 13s ease-in-out infinite; }
.m2peb-s2 { animation: m2peb-r 9s ease-in-out -3s infinite reverse; }
.m2peb-s3 { animation: m2peb-r 11s ease-in-out -6s infinite; }
.m2peb-s4 { animation: m2peb-t 7s ease-in-out -2s infinite; }
.m2peb-s5 { animation: m2peb-t 15s ease-in-out -5s infinite reverse; }
.m2peb-s6 { animation: m2peb-t 12s ease-in-out infinite; }
.m2peb-shadow { animation: m2peb-o 9s ease-in-out infinite; }
@keyframes m2peb-r { 0%, 100% { transform: rotate(-1.4deg); } 50% { transform: rotate(1.6deg) scale(1.01, .99); } }
@keyframes m2peb-t { 0%, 100% { transform: rotate(-4deg) translateX(-2%); } 50% { transform: rotate(5deg) translateX(2%); } }
@keyframes m2peb-o { 0%, 100% { opacity: 1; } 50% { opacity: .7; } }
.m2peb[data-off] .m2peb-s, .m2peb[data-off] .m2peb-shadow { animation-play-state: paused; }
.m2peb-kicker { margin: 0; color: #6b5a3f; font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.m2peb-h { margin: 12px 0 0; font-family: Georgia, "Times New Roman", serif; font-weight: 400; font-size: clamp(26px, 3.4vw, 36px); line-height: 1.18; }
.m2peb-hours { width: 100%; margin-top: 24px; border-collapse: collapse; font-size: 15px; }
.m2peb-hours caption { text-align: left; padding-bottom: 8px; color: var(--m2peb-quiet); font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.m2peb-hours th, .m2peb-hours td { padding: 10px 0; border-top: 1px solid #ddd4c6; text-align: left; font-weight: 400; }
.m2peb-hours td { text-align: right; font-variant-numeric: tabular-nums; font-weight: 500; }
.m2peb-btn { display: inline-flex; align-items: center; min-height: 48px; margin-top: 24px; padding: 0 22px; border-radius: 999px; background: var(--m2peb-btn); color: #f6f2ea; font-size: 15px; font-weight: 600; text-decoration: none; }
.m2peb-btn:hover { background: #2c3530; }
.m2peb-btn:focus-visible { outline: 2px solid var(--m2peb-btn); outline-offset: 3px; }
@media (max-width: 700px) { .m2peb-card { grid-template-columns: 1fr; } .m2peb-stage { max-width: 170px; } }
@media (prefers-reduced-motion: reduce) { .m2peb-s, .m2peb-shadow { animation: none; } }
</style>
<script>
(function () {
/* Pauses the stones while the card is off screen. */
var root = document.querySelector(".m2peb");
if (!root || !("IntersectionObserver" in window)) return;
new IntersectionObserver(function (en) {
if (en[0].isIntersecting) root.removeAttribute("data-off"); else root.setAttribute("data-off", "");
}).observe(root);
})();
</script>
With reduced motion: The stack of stones and the two loose pebbles stand still over their soft shadow.
Running cost: Six small gradient paths rock by a few degrees and one shadow ellipse fades; all of it pauses off screen.
- Recolour the stones through the `m2peb-g1` to `m2peb-g3` gradients, or point a stone at a different gradient with its `fill`.
- Keep the rocking subtle: the angles in `@keyframes m2peb-r` stay under two degrees so the stones never look like they will fall.
- Edit the timetable rows in the table body; the times use tabular figures so they line up.
Blob From Three Crossfading SVG Outlines
A florist newsletter signup where the picture beside the form is a single blob that seems to melt from rose to peach to coral. In truth it is three separate outlines stacked on a faint base, each holding for a few seconds and then fading as the next one fades in, with a small turn to hide the swap. Phones put the picture above the form.
<section class="m2xfd" aria-labelledby="m2xfd-h">
<div class="m2xfd-in">
<div class="m2xfd-art" aria-hidden="true">
<svg class="m2xfd-svg" viewBox="0 0 200 200">
<path class="m2xfd-base" d="M186.9 104.3C187.6 127.0 168.2 164.9 148.9 178.8C129.6 192.7 89.7 192.8 71.0 187.5C52.2 182.2 43.0 169.8 36.5 147.0C29.9 124.2 21.9 69.9 31.7 50.6C41.5 31.3 76.8 32.6 95.6 31.3C114.4 29.9 129.4 30.4 144.6 42.6C159.8 54.8 186.1 81.6 186.9 104.3Z"/>
<path class="m2xfd-s m2xfd-s1" d="M184.5 99.1C182.1 123.2 139.8 158.1 117.1 167.6C94.3 177.1 63.7 174.9 48.1 156.1C32.5 137.2 9.7 76.6 23.6 54.4C37.5 32.3 104.7 15.9 131.6 23.3C158.4 30.8 186.9 75.1 184.5 99.1Z"/>
<path class="m2xfd-s m2xfd-s2" d="M176.3 98.9C178.4 125.5 161.9 171.2 140.1 181.2C118.3 191.2 60.4 180.4 45.7 158.9C31.0 137.3 38.4 74.8 52.1 51.9C65.7 28.9 106.8 13.5 127.5 21.3C148.2 29.1 174.2 72.2 176.3 98.9Z"/>
<path class="m2xfd-s m2xfd-s3" d="M188.8 100.8C186.8 121.4 154.2 151.9 134.7 165.3C115.3 178.7 88.5 187.8 72.1 181.2C55.7 174.6 43.9 142.6 36.2 125.8C28.5 109.0 16.8 96.7 25.9 80.3C35.0 64.0 70.7 34.2 90.9 27.7C111.0 21.3 130.3 29.4 146.6 41.6C163.0 53.8 190.8 80.2 188.8 100.8Z"/>
<g class="m2xfd-stem" fill="none" stroke="#3f5a3c" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round">
<path d="M100 160C100 132 98 110 92 84"/>
<path d="M96 120C110 114 120 104 124 90C110 92 100 102 96 120Z"/>
<path d="M94 100C82 96 74 86 72 74C84 76 92 86 94 100Z"/>
<circle cx="91" cy="72" r="11"/>
</g>
</svg>
</div>
<div class="m2xfd-copy">
<p class="m2xfd-kicker">Mossgate Flowers</p>
<h2 class="m2xfd-h" id="m2xfd-h">One letter on Fridays about what is in bloom this week.</h2>
<p class="m2xfd-p">Which stems came in from the growers, how long they last in a vase and a short note on arranging them at home.</p>
<form class="m2xfd-form" action="#">
<label class="m2xfd-label" for="m2xfd-email">Email address</label>
<div class="m2xfd-row">
<input class="m2xfd-input" id="m2xfd-email" type="email" name="email" autocomplete="email" placeholder="[email protected]" required>
<button class="m2xfd-btn" type="submit">Sign up</button>
</div>
<p class="m2xfd-note">You can leave the list from any letter.</p>
</form>
</div>
</div>
</section>
<style>
/* Change these: page colour, the three blob fills, the button colour. */
.m2xfd { --m2xfd-bg: #f7f1ea; --m2xfd-f1: #e9c4b8; --m2xfd-f2: #f0d3bf; --m2xfd-f3: #e4b2a6; --m2xfd-ink: #2a2421; --m2xfd-btn: #3f5a3c; }
.m2xfd *, .m2xfd *::before, .m2xfd *::after { box-sizing: border-box; }
.m2xfd { box-sizing: border-box; background: var(--m2xfd-bg); color: var(--m2xfd-ink); padding: clamp(48px, 8vw, 96px) 20px; font-family: "Inter Tight", "Inter", ui-sans-serif, system-ui, sans-serif; overflow: hidden; }
.m2xfd-in { max-width: 1000px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1.2fr; align-items: center; gap: 48px; }
.m2xfd-art { width: min(360px, 74vw); aspect-ratio: 1; margin: 0 auto; }
.m2xfd-svg { width: 100%; height: 100%; overflow: visible; }
.m2xfd-base { fill: var(--m2xfd-f2); opacity: .35; }
.m2xfd-s { transform-box: fill-box; transform-origin: center; opacity: 0; }
.m2xfd-s1 { fill: var(--m2xfd-f1); opacity: 1; }
.m2xfd-s2 { fill: var(--m2xfd-f2); }
.m2xfd-s3 { fill: var(--m2xfd-f3); }
/* Each outline holds for a third of the 12s cycle, then fades while the next one fades in. */
.m2xfd-s { animation: m2xfd-x 12s ease-in-out infinite; }
.m2xfd-s2 { animation-delay: -8s; }
.m2xfd-s3 { animation-delay: -4s; }
@keyframes m2xfd-x {
0% { opacity: 1; transform: rotate(0) scale(1); }
30% { opacity: 1; transform: rotate(8deg) scale(1.02); }
46% { opacity: 0; transform: rotate(14deg) scale(1.03); }
84% { opacity: 0; transform: rotate(-10deg) scale(.98); }
100% { opacity: 1; transform: rotate(0) scale(1); }
}
.m2xfd[data-off] .m2xfd-s { animation-play-state: paused; }
.m2xfd-kicker { margin: 0; color: #8a4a3a; font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.m2xfd-h { margin: 14px 0 0; font-family: Georgia, "Times New Roman", serif; font-weight: 400; font-size: clamp(28px, 3.8vw, 40px); line-height: 1.15; }
.m2xfd-p { margin: 16px 0 0; max-width: 32rem; color: #5a4e48; font-size: 16px; line-height: 1.65; }
.m2xfd-form { margin-top: 28px; max-width: 30rem; }
.m2xfd-label { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 600; }
.m2xfd-row { display: flex; gap: 8px; }
.m2xfd-input { flex: 1; min-width: 0; height: 48px; padding: 0 14px; border: 1px solid #c9b9ab; border-radius: 12px; background: #fffdf9; color: var(--m2xfd-ink); font: inherit; font-size: 16px; }
.m2xfd-input::placeholder { color: #7d716a; }
.m2xfd-input:focus-visible { outline: 2px solid var(--m2xfd-btn); outline-offset: 1px; border-color: var(--m2xfd-btn); }
.m2xfd-btn { height: 48px; padding: 0 22px; border: 0; border-radius: 12px; background: var(--m2xfd-btn); color: #fff; font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }
.m2xfd-btn:hover { background: #2f452d; }
.m2xfd-btn:focus-visible { outline: 2px solid var(--m2xfd-btn); outline-offset: 3px; }
.m2xfd-note { margin: 10px 0 0; color: #6a5d56; font-size: 13px; }
@media (max-width: 760px) { .m2xfd-in { grid-template-columns: 1fr; gap: 28px; } .m2xfd-art { width: min(260px, 70vw); } }
@media (max-width: 400px) { .m2xfd-row { flex-direction: column; } .m2xfd-input { flex: none; width: 100%; } }
@media (prefers-reduced-motion: reduce) { .m2xfd-s { animation: none; } }
</style>
<script>
(function () {
/* Pauses the crossfade while the section is off screen. */
var root = document.querySelector(".m2xfd");
if (!root || !("IntersectionObserver" in window)) return;
new IntersectionObserver(function (en) {
if (en[0].isIntersecting) root.removeAttribute("data-off"); else root.setAttribute("data-off", "");
}).observe(root);
})();
</script>
With reduced motion: The rose outline stays in place over its faint sand shadow, with the stem drawing on top.
Running cost: Three fixed paths fade and turn a few degrees in turn, so at most two are changing at any moment.
- Set the three colours with `--m2xfd-f1`, `--m2xfd-f2` and `--m2xfd-f3`; similar lightness makes the crossfade read as one shape.
- Change the 12s on `.m2xfd-s` and keep the two delays at minus two thirds and minus one third of it.
- Replace the stem group with your own line drawing, or remove it for a plain shape.
Figure Badge Inside Layered Ink Blob
One short figure, the time a bakery lights its ovens, set in a badge of deep ink blobs on a pale slate section. Behind the number a still circle guarantees a dark ground, while the blob layers and a thin gold line turn around it so the badge edge keeps shifting. Phones place the badge under the text.
<section class="m2fig" aria-labelledby="m2fig-h">
<div class="m2fig-in">
<div class="m2fig-copy">
<p class="m2fig-kicker">Calder Street Bakery</p>
<h2 class="m2fig-h" id="m2fig-h">Bread that is still warm when the shutters go up.</h2>
<p class="m2fig-p">Sourdough, rye and a short list of morning buns, mixed the night before and baked in one deck oven behind the counter. Whatever is left at two goes to the shelter on Mill Lane.</p>
<ul class="m2fig-list">
<li>Open Tuesday to Sunday</li>
<li>Loaves can be held until noon</li>
</ul>
</div>
<div class="m2fig-badge">
<svg class="m2fig-svg" viewBox="0 0 200 200" aria-hidden="true">
<path class="m2fig-b m2fig-b2" d="M179.3 95.6C181.1 117.1 161.3 153.4 141.5 166.6C121.7 179.8 81.2 184.5 60.4 174.7C39.6 164.9 18.1 129.8 16.5 108.1C14.9 86.3 32.0 55.9 51.0 44.1C70.1 32.4 109.4 28.9 130.8 37.5C152.2 46.1 177.5 74.1 179.3 95.6Z"/>
<path class="m2fig-b m2fig-b1" d="M184.9 91.8C185.4 115.6 158.0 168.6 139.2 181.1C120.3 193.6 90.4 178.4 72.0 166.6C53.6 154.8 28.8 131.7 28.6 110.1C28.5 88.5 53.1 48.9 71.1 37.0C89.1 25.0 117.7 29.2 136.7 38.3C155.6 47.4 184.5 68.0 184.9 91.8Z"/>
<circle class="m2fig-core" cx="100" cy="102" r="56"/>
<path class="m2fig-b m2fig-b3" d="M184.0 89.2C185.7 112.1 151.2 156.5 126.5 166.2C101.7 175.9 50.7 165.9 35.6 147.2C20.5 128.5 22.5 73.9 35.9 54.2C49.3 34.5 91.2 23.0 115.9 28.8C140.6 34.7 182.2 66.3 184.0 89.2Z"/>
</svg>
<p class="m2fig-fig"><span class="m2fig-num">4:30</span><span class="m2fig-unit">am, ovens lit</span></p>
</div>
</div>
</section>
<style>
/* Change these: page colour, the three blob inks, the figure colour. */
.m2fig { --m2fig-bg: #f4f5f7; --m2fig-i1: #2c3c63; --m2fig-i2: #cfd6e6; --m2fig-i3: #2c3c63; --m2fig-ink: #1b2233; --m2fig-on: #f7f3ea; }
.m2fig *, .m2fig *::before, .m2fig *::after { box-sizing: border-box; }
.m2fig { box-sizing: border-box; background: var(--m2fig-bg); color: var(--m2fig-ink); padding: clamp(48px, 8vw, 96px) 20px; font-family: "Inter Tight", "Inter", ui-sans-serif, system-ui, sans-serif; overflow: hidden; }
.m2fig-in { max-width: 1000px; margin: 0 auto; display: grid; grid-template-columns: 1.3fr 1fr; align-items: center; gap: 48px; }
.m2fig-kicker { margin: 0; color: #46557a; font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.m2fig-h { margin: 14px 0 0; font-size: clamp(28px, 3.8vw, 40px); font-weight: 600; line-height: 1.12; letter-spacing: -.02em; }
.m2fig-p { margin: 18px 0 0; max-width: 32rem; color: #4a5368; font-size: 16px; line-height: 1.65; }
.m2fig-list { margin: 22px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: 15px; font-weight: 500; }
.m2fig-list li { display: flex; align-items: center; gap: 10px; }
.m2fig-list li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--m2fig-i1); }
.m2fig-badge { position: relative; width: min(340px, 78vw); aspect-ratio: 1; margin: 0 auto; }
.m2fig-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.m2fig-b { transform-box: fill-box; transform-origin: center; }
.m2fig-b1 { fill: var(--m2fig-i1); }
.m2fig-b2 { fill: var(--m2fig-i2); }
.m2fig-b3 { fill: none; stroke: #c8b98f; stroke-width: .7; }
/* A still circle in the same ink sits under the figure, so the text is on dark ground in every frame. */
.m2fig-core { fill: var(--m2fig-i3); }
.m2fig-fig { position: absolute; inset: 0; margin: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--m2fig-on); text-align: center; padding-top: 4%; }
.m2fig-num { font-family: Georgia, "Times New Roman", serif; font-size: clamp(44px, 7vw, 64px); line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.m2fig-unit { margin-top: 8px; font-size: 13px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: #d9d2c0; }
.m2fig-b1 { animation: m2fig-a 21s ease-in-out infinite; }
.m2fig-b2 { animation: m2fig-b 27s ease-in-out infinite; }
.m2fig-b3 { animation: m2fig-c 34s linear infinite; }
@keyframes m2fig-a { 0%, 100% { transform: rotate(0) scale(1); } 50% { transform: rotate(-48deg) scale(1.04, .97); } }
@keyframes m2fig-b { 0%, 100% { transform: rotate(20deg) scale(1.08); } 50% { transform: rotate(80deg) scale(1.02, 1.12); } }
@keyframes m2fig-c { to { transform: rotate(360deg); } }
.m2fig[data-off] .m2fig-b { animation-play-state: paused; }
@media (max-width: 760px) { .m2fig-in { grid-template-columns: 1fr; gap: 36px; } .m2fig-badge { width: min(280px, 78vw); } }
@media (prefers-reduced-motion: reduce) { .m2fig-b { animation: none; } }
</style>
<script>
(function () {
/* Pauses the badge loop while it is off screen. */
var root = document.querySelector(".m2fig");
if (!root || !("IntersectionObserver" in window)) return;
new IntersectionObserver(function (en) {
if (en[0].isIntersecting) root.removeAttribute("data-off"); else root.setAttribute("data-off", "");
}).observe(root);
})();
</script>
With reduced motion: The badge shows its ink shapes and gold outline at rest, with the time readable in the middle.
Running cost: Two filled paths and one outline rotate on separate slow cycles; the circle under the figure never moves.
- Put your own figure and caption in `.m2fig-num` and `.m2fig-unit`; short values of four or five characters fit best.
- Grow `r` on the `.m2fig-core` circle if a longer figure needs more dark ground behind it.
- Recolour the inks with `--m2fig-i1`, `--m2fig-i2` and `--m2fig-i3`, keeping `--m2fig-on` light for contrast.
Hero Corner With Two Tinted CSS Blobs
A forest-green hero for a garden designer, with two tinted blobs and a fine gold outline half tucked off the top right corner. The shapes are ordinary elements given eight unequal corner radii, then turned at three different speeds so the cluster seems to reshape. On narrow screens the cluster grows and slides further off the edge.
<section class="m2hro" aria-labelledby="m2hro-h">
<div class="m2hro-corner" aria-hidden="true">
<span class="m2hro-blob m2hro-b1"></span>
<span class="m2hro-blob m2hro-b2"></span>
<span class="m2hro-blob m2hro-b3"></span>
</div>
<header class="m2hro-bar">
<a class="m2hro-logo" href="#">Fernwick Gardens</a>
<nav aria-label="Main"><ul class="m2hro-nav"><li><a href="#">Projects</a></li><li><a href="#">Planting</a></li><li><a href="#">Contact</a></li></ul></nav>
</header>
<div class="m2hro-body">
<p class="m2hro-kicker">Garden design, Bristol</p>
<h1 class="m2hro-h" id="m2hro-h">Small gardens, planted to look after themselves.</h1>
<p class="m2hro-p">We draw, plant and hand over courtyards and back gardens with a two-page care sheet written for the people who live there.</p>
<div class="m2hro-acts">
<a class="m2hro-btn" href="#">Book a site visit</a>
<a class="m2hro-link" href="#">See recent gardens</a>
</div>
</div>
</section>
<style>
/* Change these: page colour, the two blob tints, text colour, accent. */
.m2hro { --m2hro-bg: #17302a; --m2hro-t1: #24473d; --m2hro-t2: #2e5b4b; --m2hro-ink: #f1ece0; --m2hro-acc: #d8c38f; }
.m2hro *, .m2hro *::before, .m2hro *::after { box-sizing: border-box; }
.m2hro { position: relative; box-sizing: border-box; overflow: hidden; min-height: 600px; background: var(--m2hro-bg); color: var(--m2hro-ink); padding: 24px clamp(20px, 5vw, 64px) 64px; font-family: "Inter Tight", "Inter", ui-sans-serif, system-ui, sans-serif; }
.m2hro a:focus-visible { outline: 2px solid var(--m2hro-acc); outline-offset: 3px; border-radius: 6px; }
.m2hro-corner { position: absolute; right: -14vw; top: -18vw; width: max(46vw, 380px); aspect-ratio: 1; pointer-events: none; }
/* Each blob is a still shape made by eight corner radii; only rotation and scale move it. */
.m2hro-blob { position: absolute; inset: 0; }
.m2hro-b1 { background: var(--m2hro-t1); border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%; animation: m2hro-a 24s ease-in-out infinite; }
.m2hro-b2 { inset: 16% 2% 4% 20%; background: var(--m2hro-t2); border-radius: 61% 39% 47% 53% / 52% 61% 39% 48%; animation: m2hro-b 31s ease-in-out infinite; }
.m2hro-b3 { inset: 22% 18% 30% 26%; border: 1px solid rgba(216, 195, 143, .45); border-radius: 50% 50% 38% 62% / 57% 43% 57% 43%; animation: m2hro-c 40s linear infinite; }
@keyframes m2hro-a { 0%, 100% { transform: rotate(0) scale(1); } 50% { transform: rotate(50deg) scale(1.06, .96); } }
@keyframes m2hro-b { 0%, 100% { transform: rotate(0) scale(.97); } 50% { transform: rotate(-70deg) scale(1.03, 1.07); } }
@keyframes m2hro-c { to { transform: rotate(-360deg); } }
.m2hro[data-off] .m2hro-blob { animation-play-state: paused; }
.m2hro-bar { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px; max-width: 1120px; margin: 0 auto; }
.m2hro-logo { color: var(--m2hro-ink); font-family: Georgia, "Times New Roman", serif; font-size: 20px; text-decoration: none; }
.m2hro-nav { display: flex; gap: 6px; margin: 0; padding: 0; list-style: none; }
.m2hro-nav a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 12px; color: var(--m2hro-ink); font-size: 15px; text-decoration: none; }
.m2hro-nav a:hover { color: var(--m2hro-acc); }
.m2hro-body { position: relative; max-width: 1120px; margin: 0 auto; padding-top: clamp(64px, 11vw, 120px); }
.m2hro-kicker { margin: 0; color: var(--m2hro-acc); font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.m2hro-h { margin: 18px 0 0; max-width: 15ch; font-family: Georgia, "Times New Roman", serif; font-weight: 400; font-size: clamp(36px, 6vw, 68px); line-height: 1.05; letter-spacing: -.015em; }
.m2hro-p { margin: 22px 0 0; max-width: 34rem; color: #cfd6cc; font-size: 17px; line-height: 1.6; }
.m2hro-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 32px; }
.m2hro-btn { display: inline-flex; align-items: center; min-height: 48px; padding: 0 24px; border-radius: 999px; background: var(--m2hro-acc); color: #17302a; font-weight: 600; font-size: 15px; text-decoration: none; }
.m2hro-btn:hover { background: #e7d6aa; }
.m2hro-link { display: inline-flex; align-items: center; min-height: 44px; color: var(--m2hro-ink); font-size: 15px; text-decoration: underline; text-underline-offset: 5px; }
@media (max-width: 640px) { .m2hro-nav li:not(:last-child) { display: none; } .m2hro-corner { right: -40%; top: -150px; width: 110vw; } }
@media (prefers-reduced-motion: reduce) { .m2hro-blob { animation: none; } }
</style>
<script>
(function () {
/* Pauses the corner shapes while the hero is off screen. */
var root = document.querySelector(".m2hro");
if (!root || !("IntersectionObserver" in window)) return;
new IntersectionObserver(function (en) {
if (en[0].isIntersecting) root.removeAttribute("data-off"); else root.setAttribute("data-off", "");
}).observe(root);
})();
</script>
With reduced motion: Both tinted shapes and the gold outline hold still in the top corner of the hero.
Running cost: Three plain elements with fixed corner radii rotate and scale; the radii themselves are never animated.
- Set the tints with `--m2hro-t1` and `--m2hro-t2`; keep both close to `--m2hro-bg` so the headline stays clear where they overlap.
- Change the silhouette by editing the eight `border-radius` values on `.m2hro-b1` and `.m2hro-b2`.
- Move the cluster by changing `right`, `top` and `width` on `.m2hro-corner`.
Morphing Outline Ring Around Listen Button
A graphite podcast card where a round gold play button is circled by three thin blob outlines in gold, sage and bone. They spin in opposite directions at unequal speeds and one also squeezes slightly, so the ring around the button looks like it is being redrawn. On phones the button and ring sit above the episode text.
<section class="m2rng" aria-labelledby="m2rng-h">
<div class="m2rng-card">
<div class="m2rng-stage">
<svg class="m2rng-svg" viewBox="0 0 200 200" aria-hidden="true">
<circle class="m2rng-halo" cx="100" cy="100" r="74"/>
<path class="m2rng-o m2rng-o1" d="M168.2 92.8C168.2 113.2 153.3 145.9 137.5 159.2C121.7 172.5 94.3 184.8 73.5 172.5C52.7 160.2 13.0 108.3 12.6 85.2C12.1 62.2 50.0 42.3 70.8 34.2C91.7 26.1 121.5 27.1 137.7 36.8C153.9 46.6 168.2 72.4 168.2 92.8Z"/>
<path class="m2rng-o m2rng-o2" d="M181.7 98.4C180.8 122.9 154.8 155.5 138.1 169.2C121.4 182.9 99.0 184.6 81.4 180.4C63.8 176.1 42.4 164.2 32.6 143.7C22.7 123.2 15.9 76.3 22.4 57.5C29.0 38.8 51.8 37.0 72.0 31.2C92.1 25.3 125.1 11.2 143.4 22.4C161.7 33.6 182.6 74.0 181.7 98.4Z"/>
<path class="m2rng-o m2rng-o3" d="M177.9 102.2C177.2 126.9 155.8 151.5 133.8 163.0C111.8 174.5 63.3 182.4 46.0 171.2C28.7 159.9 27.1 118.4 29.9 95.7C32.8 72.9 45.0 48.1 63.0 34.7C81.1 21.3 119.1 3.9 138.2 15.2C157.4 26.4 178.7 77.6 177.9 102.2Z"/>
</svg>
<a class="m2rng-play" href="#" aria-label="Listen to episode 14, Hedges and the second hay cut">
<svg viewBox="0 0 24 24" aria-hidden="true"><path d="M8 5.5v13l10.5-6.5z"/></svg>
</a>
</div>
<div class="m2rng-info">
<p class="m2rng-kicker">Ashgrove Farm Notes · Episode 14</p>
<h2 class="m2rng-h" id="m2rng-h">Hedges and the second hay cut</h2>
<p class="m2rng-p">Maren walks the north boundary with the hedge layer from the next valley and talks through which stems to keep, which to cut and why the birds care.</p>
<p class="m2rng-meta"><span>38 minutes</span><span>Recorded in the field</span></p>
</div>
</div>
</section>
<style>
/* Change these: page colour, card colour, the three outline colours, the button colour. */
.m2rng { --m2rng-bg: #22252a; --m2rng-card: #2c3036; --m2rng-l1: #d6b47a; --m2rng-l2: #9fb0a3; --m2rng-l3: #e8e2d6; --m2rng-ink: #f2eee6; --m2rng-btn: #d6b47a; }
.m2rng *, .m2rng *::before, .m2rng *::after { box-sizing: border-box; }
.m2rng { box-sizing: border-box; background: var(--m2rng-bg); color: var(--m2rng-ink); padding: clamp(40px, 7vw, 88px) 16px; font-family: "Inter Tight", "Inter", ui-sans-serif, system-ui, sans-serif; overflow: hidden; }
.m2rng-card { max-width: 880px; margin: 0 auto; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: clamp(24px, 5vw, 56px); padding: clamp(24px, 4vw, 44px); border-radius: 24px; background: var(--m2rng-card); }
.m2rng-stage { position: relative; width: 240px; aspect-ratio: 1; margin: 0 auto; }
.m2rng-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.m2rng-o { fill: none; stroke-width: 1.5; stroke-linecap: round; transform-box: fill-box; transform-origin: center; }
.m2rng-halo { fill: #383e46; }
.m2rng-o1 { stroke: var(--m2rng-l1); }
.m2rng-o2 { stroke: var(--m2rng-l2); opacity: .8; }
.m2rng-o3 { stroke: var(--m2rng-l3); opacity: .45; }
/* Three outlines turn in opposite directions at unequal speeds, so the ring seems to change shape. */
.m2rng-o1 { animation: m2rng-a 18s linear infinite; }
.m2rng-o2 { animation: m2rng-b 26s linear infinite; }
.m2rng-o3 { animation: m2rng-c 22s ease-in-out infinite; }
@keyframes m2rng-a { to { transform: rotate(360deg); } }
@keyframes m2rng-b { from { transform: rotate(40deg) scale(.94); } to { transform: rotate(-320deg) scale(.94); } }
@keyframes m2rng-c { 0%, 100% { transform: rotate(0) scale(.86); } 50% { transform: rotate(120deg) scale(.92, .84); } }
.m2rng[data-off] .m2rng-o { animation-play-state: paused; }
.m2rng-play { position: absolute; left: 50%; top: 50%; width: 88px; height: 88px; margin: -44px 0 0 -44px; display: grid; place-items: center; border-radius: 50%; background: var(--m2rng-btn); color: #22252a; transition: transform .25s ease; }
.m2rng-play svg { width: 30px; height: 30px; margin-left: 4px; fill: currentColor; }
.m2rng-play:hover { transform: scale(1.05); }
.m2rng-play:focus-visible { outline: 2px solid var(--m2rng-l3); outline-offset: 5px; }
.m2rng-kicker { margin: 0; color: var(--m2rng-l1); font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.m2rng-h { margin: 12px 0 0; font-size: clamp(26px, 3.4vw, 34px); font-weight: 600; line-height: 1.15; letter-spacing: -.02em; }
.m2rng-p { margin: 14px 0 0; color: #c9c5bc; font-size: 16px; line-height: 1.6; }
.m2rng-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 0; font-size: 13px; color: #c9c5bc; }
.m2rng-meta span { padding: 6px 12px; border: 1px solid #454a52; border-radius: 999px; }
@media (max-width: 680px) { .m2rng-card { grid-template-columns: 1fr; } .m2rng-stage { width: 200px; } }
@media (prefers-reduced-motion: reduce) { .m2rng-o { animation: none; } .m2rng-o2 { transform: rotate(40deg) scale(.94); } .m2rng-o3 { transform: scale(.86); } .m2rng-play { transition: none; } }
</style>
<script>
(function () {
/* Pauses the ring while the card is off screen. */
var root = document.querySelector(".m2rng");
if (!root || !("IntersectionObserver" in window)) return;
new IntersectionObserver(function (en) {
if (en[0].isIntersecting) root.removeAttribute("data-off"); else root.setAttribute("data-off", "");
}).observe(root);
})();
</script>
With reduced motion: The three outlines sit still at slightly different sizes, so the ring still reads as hand drawn.
Running cost: Three thin stroked paths rotate and scale; the play button only scales on hover.
- Recolour each line with `--m2rng-l1`, `--m2rng-l2` and `--m2rng-l3`.
- Thicken the ring by raising `stroke-width` on `.m2rng-o`; values from 0.8 to 1.6 keep it delicate at this size.
- Point the button at your audio page or player and update its `aria-label` with the episode title.
Portrait Framed By Breathing Blob Shapes
A round photo of a potter sits inside two clay-coloured blobs and one thin terracotta outline, each turning and swelling on its own slow cycle so the frame seems to breathe. The text column beside it stays on flat paper colour. On phones the portrait moves under the copy at a smaller size.
<section class="m2prt" aria-labelledby="m2prt-h">
<div class="m2prt-in">
<div class="m2prt-copy">
<p class="m2prt-kicker">Hollow Kiln Studio</p>
<h2 class="m2prt-h" id="m2prt-h">Ines Varga throws every bowl on one wheel by the window.</h2>
<p class="m2prt-p">Stoneware for the table, glazed in small firings of twenty pieces. Ines teaches a Saturday morning class for people who have never touched clay.</p>
<a class="m2prt-btn" href="#">Meet the studio</a>
</div>
<figure class="m2prt-fig">
<svg class="m2prt-blobs" viewBox="0 0 200 200" aria-hidden="true">
<path class="m2prt-b m2prt-b1" d="M189.0 86.9C186.0 108.3 151.0 153.1 129.6 166.7C108.3 180.2 80.5 180.1 60.9 168.1C41.2 156.1 12.3 114.6 11.8 94.6C11.4 74.7 35.3 58.0 57.9 48.6C80.6 39.2 125.9 31.9 147.7 38.2C169.6 44.6 192.1 65.5 189.0 86.9Z"/>
<path class="m2prt-b m2prt-b2" d="M180.8 91.5C183.2 116.2 152.6 169.9 129.7 177.5C106.8 185.1 62.0 156.1 43.5 136.9C25.0 117.7 6.6 80.2 18.6 62.3C30.6 44.4 88.6 24.5 115.6 29.4C142.7 34.2 178.5 66.8 180.8 91.5Z"/>
<path class="m2prt-b m2prt-b3" d="M188.7 110.5C188.7 136.1 147.3 160.8 123.0 169.4C98.7 178.1 58.5 182.4 42.7 162.4C27.0 142.4 15.3 73.9 28.6 49.4C42.0 24.9 96.2 5.1 122.9 15.2C149.5 25.4 188.6 84.8 188.7 110.5Z"/>
</svg>
<img class="m2prt-img" src="https://images.pexels.com/photos/9304494/pexels-photo-9304494.jpeg?auto=compress&cs=tinysrgb&w=800" width="560" height="560" decoding="async" alt="A potter in a grey apron shaping a lump of clay on a spinning wheel">
<figcaption class="m2prt-cap">Ines at the wheel</figcaption>
</figure>
</div>
</section>
<style>
/* Change these: page colour, the two blob fills, the outline colour, the button colour. */
.m2prt { --m2prt-bg: #f6efe6; --m2prt-fill1: #e3b89a; --m2prt-fill2: #eed6bf; --m2prt-line: #9a4f32; --m2prt-ink: #2b211b; --m2prt-btn: #8c3f24; }
.m2prt *, .m2prt *::before, .m2prt *::after { box-sizing: border-box; }
.m2prt { box-sizing: border-box; background: var(--m2prt-bg); color: var(--m2prt-ink); padding: clamp(48px, 8vw, 96px) 20px; font-family: "Inter Tight", "Inter", ui-sans-serif, system-ui, sans-serif; overflow: hidden; }
.m2prt-in { max-width: 1040px; margin: 0 auto; display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.m2prt-kicker { margin: 0; font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--m2prt-btn); }
.m2prt-h { margin: 16px 0 0; font-family: Georgia, "Times New Roman", serif; font-weight: 400; font-size: clamp(28px, 4vw, 42px); line-height: 1.15; letter-spacing: -.01em; }
.m2prt-p { margin: 18px 0 0; max-width: 30rem; font-size: 16px; line-height: 1.65; color: #5b4c41; }
.m2prt-btn { display: inline-flex; align-items: center; min-height: 46px; margin-top: 28px; padding: 0 24px; border-radius: 999px; background: var(--m2prt-btn); color: #fff; font-size: 15px; font-weight: 600; text-decoration: none; }
.m2prt-btn:hover { background: #6f3019; }
.m2prt-btn:focus-visible { outline: 2px solid var(--m2prt-btn); outline-offset: 3px; }
.m2prt-fig { position: relative; margin: 0 auto; width: min(400px, 82vw); aspect-ratio: 1; }
.m2prt-blobs { position: absolute; inset: -6%; width: 112%; height: 112%; overflow: visible; }
.m2prt-b { transform-box: fill-box; transform-origin: center; }
.m2prt-b1 { fill: var(--m2prt-fill2); }
.m2prt-b2 { fill: var(--m2prt-fill1); opacity: .85; }
.m2prt-b3 { fill: none; stroke: var(--m2prt-line); stroke-width: .8; stroke-linecap: round; }
.m2prt-img { position: absolute; left: 17%; top: 17%; width: 66%; height: 66%; border-radius: 50%; object-fit: cover; object-position: 50% 22%; background: #2a2420; box-shadow: 0 18px 40px -18px rgba(70, 35, 18, .45); }
.m2prt-cap { position: absolute; left: 50%; bottom: 2%; transform: translateX(-50%); padding: 6px 14px; border-radius: 999px; background: #fffaf4; font-size: 13px; font-weight: 500; white-space: nowrap; box-shadow: 0 4px 14px -6px rgba(70, 35, 18, .35); }
/* Three fixed outlines turn and breathe at different speeds, so the edge never repeats the same way. */
.m2prt-b1 { animation: m2prt-a 22s ease-in-out infinite; }
.m2prt-b2 { animation: m2prt-b 29s ease-in-out infinite; }
.m2prt-b3 { animation: m2prt-c 36s linear infinite; }
@keyframes m2prt-a { 0%, 100% { transform: rotate(0) scale(1); } 50% { transform: rotate(40deg) scale(1.05, .97); } }
@keyframes m2prt-b { 0%, 100% { transform: rotate(0) scale(.96); } 50% { transform: rotate(-55deg) scale(1.02, 1.05); } }
@keyframes m2prt-c { to { transform: rotate(360deg); } }
.m2prt[data-off] .m2prt-b { animation-play-state: paused; }
@media (max-width: 760px) { .m2prt-in { grid-template-columns: 1fr; gap: 40px; } .m2prt-fig { width: min(320px, 80vw); } }
@media (prefers-reduced-motion: reduce) { .m2prt-b { animation: none; } }
</style>
<script>
(function () {
/* Pauses the blob loop while the section is off screen. */
var root = document.querySelector(".m2prt");
if (!root || !("IntersectionObserver" in window)) return;
new IntersectionObserver(function (en) {
if (en[0].isIntersecting) root.removeAttribute("data-off"); else root.setAttribute("data-off", "");
}).observe(root);
})();
</script>
With reduced motion: The two filled blobs and the thin outline stay still around the round portrait, already composed.
Running cost: Three fixed SVG paths only rotate and scale, and their keyframes pause once the section leaves the screen.
- Swap `--m2prt-fill1`, `--m2prt-fill2` and `--m2prt-line` for your own palette; keep the fills lighter than the photo so the face stays the focus.
- Change the 22s, 29s and 36s durations on `.m2prt-b1` to `.m2prt-b3`; keeping them unequal is what stops the edge from looking like a spin.
- Replace the photo address and adjust `object-position` on `.m2prt-img` so the face lands in the circle.
Product Photo On Soft Morphing Blob Plate
A shop product card where the photo of a ceramic vase sits on a warm plate made from two overlapping blobs. Each blob carries its own soft radial gradient, so the plate looks lit without any blur, and the pair drift against each other so its outline keeps changing. Phones stack the photo above the details.
<section class="m2plt" aria-labelledby="m2plt-h">
<div class="m2plt-card">
<div class="m2plt-stage">
<svg class="m2plt-plate" viewBox="0 0 200 200" aria-hidden="true">
<defs>
<radialGradient id="m2plt-g1" cx="45%" cy="40%" r="65%"><stop offset="0" stop-color="#d9a277"/><stop offset="1" stop-color="#b8734a"/></radialGradient>
<radialGradient id="m2plt-g2" cx="60%" cy="55%" r="60%"><stop offset="0" stop-color="#ecc9a6"/><stop offset="1" stop-color="#e2b286" stop-opacity=".6"/></radialGradient>
</defs>
<path class="m2plt-p m2plt-p1" fill="url(#m2plt-g1)" d="M191.4 116.9C192.2 134.6 171.4 134.1 151.1 144.9C130.8 155.6 89.6 184.1 69.5 181.3C49.5 178.4 38.0 147.8 30.9 127.7C23.7 107.6 17.5 76.9 26.7 60.8C36.0 44.7 66.7 34.8 86.6 31.1C106.5 27.4 128.8 24.3 146.3 38.5C163.7 52.8 190.5 99.1 191.4 116.9Z"/>
<path class="m2plt-p m2plt-p2" fill="url(#m2plt-g2)" d="M169.8 95.1C170.9 115.8 148.4 148.8 130.2 160.6C112.1 172.3 79.2 173.1 61.0 165.4C42.8 157.6 23.0 134.9 21.0 114.1C19.1 93.3 32.1 53.7 49.2 40.7C66.3 27.7 103.4 26.9 123.5 36.0C143.6 45.0 168.6 74.3 169.8 95.1Z"/>
</svg>
<img class="m2plt-img" src="https://images.pexels.com/photos/29904622/pexels-photo-29904622.jpeg?auto=compress&cs=tinysrgb&w=800" width="600" height="600" decoding="async" alt="A cream ceramic vase made of two stacked round discs, lit by low sun on a brown table">
</div>
<div class="m2plt-info">
<p class="m2plt-kicker">Orsa Ceramics</p>
<h2 class="m2plt-h" id="m2plt-h">Two Stone Vase</h2>
<p class="m2plt-p0">Two rounded halves joined while still soft, with a single narrow neck for one stem or a dried grass head.</p>
<dl class="m2plt-dl">
<div><dt>Height</dt><dd>24 cm</dd></div>
<div><dt>Glaze</dt><dd>Matte bone</dd></div>
<div><dt>Care</dt><dd>Hand wash only</dd></div>
</dl>
<a class="m2plt-btn" href="#">Ask about this piece</a>
</div>
</div>
</section>
<style>
/* Change these: page colour, card colour, text colour, button colour. Plate colours live in the two gradients above. */
.m2plt { --m2plt-bg: #efe4d6; --m2plt-card: #fbf6ef; --m2plt-ink: #2a1d15; --m2plt-quiet: #66554a; --m2plt-btn: #2a1d15; }
.m2plt *, .m2plt *::before, .m2plt *::after { box-sizing: border-box; }
.m2plt { box-sizing: border-box; background: var(--m2plt-bg); color: var(--m2plt-ink); padding: clamp(32px, 6vw, 72px) 16px; font-family: "Inter Tight", "Inter", ui-sans-serif, system-ui, sans-serif; overflow: hidden; }
.m2plt-card { max-width: 980px; margin: 0 auto; display: grid; grid-template-columns: 1.15fr 1fr; align-items: center; gap: 40px; padding: clamp(20px, 4vw, 48px); border-radius: 28px; background: var(--m2plt-card); box-shadow: 0 30px 60px -40px rgba(60, 30, 10, .4); }
.m2plt-stage { position: relative; width: 100%; max-width: 440px; margin: 0 auto; aspect-ratio: 1; }
.m2plt-plate { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.m2plt-p { transform-box: fill-box; transform-origin: center; }
.m2plt-img { position: absolute; left: 21%; top: 19%; width: 58%; height: 58%; border-radius: 22px; object-fit: cover; background: #3a2116; box-shadow: 0 24px 34px -20px rgba(50, 20, 5, .6); }
.m2plt-kicker { margin: 0; font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #8a4b2b; }
.m2plt-h { margin: 10px 0 0; font-size: clamp(28px, 3.6vw, 38px); font-weight: 600; letter-spacing: -.02em; }
.m2plt-p0 { margin: 14px 0 0; font-size: 16px; line-height: 1.6; color: var(--m2plt-quiet); }
.m2plt-dl { margin: 22px 0 0; border-top: 1px solid #e6d9c9; }
.m2plt-dl div { display: flex; justify-content: space-between; padding: 11px 0; border-bottom: 1px solid #e6d9c9; font-size: 15px; }
.m2plt-dl dt { color: var(--m2plt-quiet); }
.m2plt-dl dd { margin: 0; font-weight: 500; }
.m2plt-btn { display: inline-flex; align-items: center; min-height: 48px; margin-top: 26px; padding: 0 24px; border-radius: 14px; background: var(--m2plt-btn); color: #fbf6ef; font-size: 15px; font-weight: 600; text-decoration: none; }
.m2plt-btn:hover { background: #4a3326; }
.m2plt-btn:focus-visible { outline: 2px solid var(--m2plt-btn); outline-offset: 3px; }
/* The plate: two fixed blobs drift against each other on 19s and 27s cycles. */
.m2plt-p1 { animation: m2plt-a 19s ease-in-out infinite; }
.m2plt-p2 { animation: m2plt-b 27s ease-in-out infinite; }
@keyframes m2plt-a { 0%, 100% { transform: rotate(-8deg) scale(1); } 50% { transform: rotate(28deg) scale(.95, 1.04); } }
@keyframes m2plt-b { 0%, 100% { transform: rotate(10deg) translate(2%, 1%) scale(1); } 50% { transform: rotate(-36deg) translate(-3%, -2%) scale(1.06, .97); } }
.m2plt[data-off] .m2plt-p { animation-play-state: paused; }
@media (max-width: 760px) { .m2plt-card { grid-template-columns: 1fr; gap: 24px; } .m2plt-stage { max-width: 320px; } }
@media (prefers-reduced-motion: reduce) { .m2plt-p { animation: none; } }
</style>
<script>
(function () {
/* Pauses the plate loop while the card is off screen. */
var root = document.querySelector(".m2plt");
if (!root || !("IntersectionObserver" in window)) return;
new IntersectionObserver(function (en) {
if (en[0].isIntersecting) root.removeAttribute("data-off"); else root.setAttribute("data-off", "");
}).observe(root);
})();
</script>
With reduced motion: The photo rests on a still, two-tone clay plate, with nothing drifting behind it.
Running cost: Two gradient-filled paths are painted once and then only turned and scaled; nothing is blurred live.
- Recolour the plate by editing the `stop-color` values in the `m2plt-g1` and `m2plt-g2` gradients.
- Make the drift calmer by lowering the rotate values inside `@keyframes m2plt-a` and `m2plt-b`.
- Change the details list by editing the `dt` and `dd` pairs, and the button colour through `--m2plt-btn`.
Slow Navy Blob Behind Client Quote
A single client quote for a joinery workshop, set in serif type on deep navy, with a wide blob stretched behind it that leans and swells over half a minute. Both tones sit only a step above the page colour, so the cream quote keeps the same strong contrast in every frame. The shape stretches with the text box on phones.
<section class="m2quo" aria-labelledby="m2quo-h">
<h2 class="m2quo-h" id="m2quo-h">What clients say</h2>
<div class="m2quo-wrap">
<svg class="m2quo-svg" viewBox="0 0 200 200" preserveAspectRatio="none" aria-hidden="true">
<path class="m2quo-b m2quo-b1" d="M189.5 107.6C193.7 135.9 165.5 176.9 140.3 185.3C115.0 193.7 57.6 178.7 37.9 157.9C18.2 137.2 9.0 84.6 21.9 60.8C34.7 37.0 87.0 7.6 114.9 15.4C142.9 23.2 185.2 79.3 189.5 107.6Z"/>
<path class="m2quo-b m2quo-b2" d="M191.6 115.7C191.9 135.6 152.2 149.2 133.6 159.1C115.0 169.1 96.0 180.1 79.9 175.2C63.8 170.2 46.2 146.0 37.2 129.3C28.1 112.6 19.6 92.2 25.7 74.9C31.9 57.6 56.4 31.6 74.1 25.7C91.7 19.8 112.0 24.7 131.6 39.7C151.2 54.7 191.3 95.8 191.6 115.7Z"/>
</svg>
<figure class="m2quo-fig">
<svg class="m2quo-mark" viewBox="0 0 40 32" aria-hidden="true"><path d="M4 30V18C4 9 9 3 17 2v6c-4 1-6 4-6 9h6v13zM23 30V18c0-9 5-15 13-16v6c-4 1-6 4-6 9h6v13z"/></svg>
<blockquote class="m2quo-q"><p>They fitted the kitchen around a crooked old wall instead of fighting it, and every drawer still closes with one finger two winters later.</p></blockquote>
<figcaption class="m2quo-cap"><span class="m2quo-name">Hanna Ostrowski</span><span class="m2quo-role">Kitchen in a Victorian terrace, Leith</span></figcaption>
</figure>
</div>
<p class="m2quo-foot">Brannock & Lowe Joinery · <a href="#">Read more client notes</a></p>
</section>
<style>
/* Change these: page colour, the two blob tones, quote colour, accent. */
.m2quo { --m2quo-bg: #121b2e; --m2quo-t1: #1a2741; --m2quo-t2: #1f2f4f; --m2quo-ink: #f2ede3; --m2quo-acc: #d9b26f; }
.m2quo *, .m2quo *::before, .m2quo *::after { box-sizing: border-box; }
.m2quo { box-sizing: border-box; background: var(--m2quo-bg); color: var(--m2quo-ink); padding: clamp(48px, 8vw, 96px) 20px; font-family: "Inter Tight", "Inter", ui-sans-serif, system-ui, sans-serif; overflow: hidden; text-align: center; }
.m2quo-h { margin: 0; color: var(--m2quo-acc); font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.m2quo-wrap { position: relative; max-width: 820px; margin: 28px auto 0; padding: clamp(48px, 8vw, 88px) clamp(16px, 8vw, 96px); }
.m2quo-svg { position: absolute; left: -6%; top: -3%; width: 112%; height: 106%; overflow: visible; }
.m2quo-b { transform-box: fill-box; transform-origin: center; }
.m2quo-b1 { fill: var(--m2quo-t1); }
.m2quo-b2 { fill: var(--m2quo-t2); opacity: .8; }
/* Very slow, out of phase: the shape behind the quote never seems to repeat. */
.m2quo-b1 { animation: m2quo-a 30s ease-in-out infinite; }
.m2quo-b2 { animation: m2quo-b 23s ease-in-out infinite; }
@keyframes m2quo-a { 0%, 100% { transform: rotate(0) scale(1); } 50% { transform: rotate(14deg) scale(1.04, .96); } }
@keyframes m2quo-b { 0%, 100% { transform: rotate(-6deg) scale(.94, 1); } 50% { transform: rotate(12deg) scale(1, .92); } }
.m2quo[data-off] .m2quo-b { animation-play-state: paused; }
.m2quo-fig { position: relative; margin: 0; }
.m2quo-mark { display: block; margin: 0 auto; width: 34px; height: 28px; fill: var(--m2quo-acc); }
.m2quo-q { margin: 18px 0 0; }
.m2quo-q p { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(22px, 3.2vw, 32px); line-height: 1.35; }
.m2quo-cap { display: flex; flex-direction: column; gap: 4px; margin-top: 26px; font-size: 15px; }
.m2quo-name { font-weight: 600; }
.m2quo-role { color: #c4c8d2; }
.m2quo-foot { margin: 28px 0 0; color: #c4c8d2; font-size: 14px; }
.m2quo-foot a { color: var(--m2quo-ink); text-decoration: underline; text-underline-offset: 4px; display: inline-flex; align-items: center; min-height: 40px; }
.m2quo-foot a:focus-visible { outline: 2px solid var(--m2quo-acc); outline-offset: 2px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) { .m2quo-b { animation: none; } }
</style>
<script>
(function () {
/* Pauses the blob while the quote is off screen. */
var root = document.querySelector(".m2quo");
if (!root || !("IntersectionObserver" in window)) return;
new IntersectionObserver(function (en) {
if (en[0].isIntersecting) root.removeAttribute("data-off"); else root.setAttribute("data-off", "");
}).observe(root);
})();
</script>
With reduced motion: The quote sits on a still pair of navy shapes, exactly as it reads mid-loop.
Running cost: Two large paths stretched to the quote box turn by a few degrees over 23 and 30 seconds, which changes very few pixels per frame.
- Keep `--m2quo-t1` and `--m2quo-t2` within a shade or two of `--m2quo-bg`; brighter tones will start to compete with the quote.
- Slow the lean further by raising 30s and 23s on `.m2quo-b1` and `.m2quo-b2`.
- Swap the quote, name and project line; the blob resizes with the text because the SVG uses preserveAspectRatio none.
Performance notes
Each layer is drawn once and then only moved and faded, which the browser handles on the compositor. The costly part of many blob effects is a live blur over a moving shape; where softness is wanted here, it is baked into a gradient that never changes.
Slow, out-of-phase cycles of 12 to 30 seconds read as organic and keep the number of changing pixels low. Each piece pauses its keyframes with animation-play-state when it is scrolled out of view.
Questions
How do I make a blob shape in CSS?
Give an element eight border-radius values, for example 42% 58% 63% 37% / 41% 44% 56% 59%, which bends each corner differently and makes an irregular round shape. Layer two or three of these with different values and rotate them at different speeds for a shape that seems to breathe.
Can I morph one SVG path into another?
With SMIL animate on the d attribute, yes, as long as both paths have the same number and type of commands. Browsers redraw the path on every frame, so keep it small. The pieces here avoid that and fake the morph with layered shapes, which is cheaper and simpler to edit.
Why do blob animations get slow?
Usually because a large blurred element is moving, or border-radius and path data are animating, which forces fresh painting each frame. Animate transform and opacity only, use pre-softened gradients and pause the loop off screen.
How do I put text on a blob?
Place the blob in a layer behind the text with position absolute and a lower z-index, give the text its own solid colour, and test contrast against the lightest part of the shape as it turns.
More collections: Animated Gradient Backgrounds, Logo Animations and Logo Reveals in SVG and CSS, Animated Icons in SVG: Interface, Weather and Success States. All motion graphics. Build your site free to have a full site built around them.
Product
Who It's For
- For Agencies
- For Freelancers
- For Hosting Providers
- For SaaS Platforms
- For Startups
- For Financial Services
- For Healthcare
Features
Resources
- Blog
- Help Center
- Free Business Tools
- Free UI Components
- Website Templates
- Template Collections
- Website Examples
- Guides
- Comparisons
- Alternatives
- Best Lists
- Reviews
- Pricing Guides
- Use Cases
- Glossary & Guides
- Integrations
- Developers
- Benchmark
- Windows App