176 web animation techniques, each a live demo with plain settings and a ready-made prompt for your AI assistant. No dependencies, no build step.
HTML ai-promptsanimationcss-animationsfrontendgithub-pagesjavascriptmicrointeractionsmotion-designno-dependenciesreferencescroll-animationui-animationweb-animationweb-developmentwebgl
fix: shrink the Mesh Gradient card on short screens and correct its README
matin49131c8b018f
diff --git a/animations/07-ambient-background/mesh-gradient/README.md b/animations/07-ambient-background/mesh-gradient/README.mdindex 3e592a07..627be133 100644--- a/animations/07-ambient-background/mesh-gradient/README.md+++ b/animations/07-ambient-background/mesh-gradient/README.md@@ -1,7 +1,7 @@# Mesh Gradient Animation## What it is-A mesh gradient is a background of large circles of color, blurred so heavily that their edges disappear and they melt into soft washes. Each circle drifts and grows or shrinks slowly on its own path, so the colors keep blending in new ways, like paint that never quite dries. It is the look of Stripe, Linear and many modern software sites.+A mesh gradient is a background of a few large circles of color, blurred so their edges soften and the colors run into one another; with heavy blur they melt into soft washes. Each circle drifts and grows or shrinks slowly on its own path, so the colors keep blending in new ways, like paint that never quite dries. It is the look of Stripe, Linear and many modern software sites.## When to use it- Marketing hero sections where the brand palette must feel premium and hand-crafted@@ -10,7 +10,7 @@ A mesh gradient is a background of large circles of color, blurred so heavily th- App splash screens and loading states## How it works-Each blob is an absolutely-positioned `<div>` with a radial gradient background and `filter: blur()`. The key is heavy blur — 80px or more — which dissolves the gradient's hard edges into pure color wash. CSS keyframes animate each blob on an independent path:+Each blob is an absolutely-positioned round `<div>` filled with one color and softened with `filter: blur()`. The key is heavy blur — 80px or more — which dissolves the circle's hard edge into a wash of color. CSS keyframes animate each blob on an independent path:```css.blob {diff --git a/animations/07-ambient-background/mesh-gradient/index.html b/animations/07-ambient-background/mesh-gradient/index.htmlindex eddf8f62..2b2da412 100644--- a/animations/07-ambient-background/mesh-gradient/index.html+++ b/animations/07-ambient-background/mesh-gradient/index.html@@ -41,8 +41,9 @@.fg-title{font-size:clamp(15px,2vw,20px);font-weight:700;color:#fff;margin-bottom:8px;line-height:1.2}.fg-body{font-size:13px;color:rgba(255,255,255,.72);line-height:1.6}/* Heavy blur is the costly part on phones, and their stage is less than half as wide, so half the blur looks the same */- @media(max-width:600px){- .blob{filter:blur(calc(var(--blob-blur) * .5))}+ @media(max-width:600px){.blob{filter:blur(calc(var(--blob-blur) * .5))}}+ /* On phones and short screens the stage is small, so the card shrinks to leave the blobs in view */+ @media(max-width:600px),(max-height:760px){.fg-card{padding:12px 14px}.fg-eyebrow{margin-bottom:4px}.fg-title{margin-bottom:0}