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: Wave Layers stage edge
matince47bbd5c38b
diff --git a/animations/07-ambient-background/wave-layers/index.html b/animations/07-ambient-background/wave-layers/index.htmlindex bb468231..fbe4ac1c 100644--- a/animations/07-ambient-background/wave-layers/index.html+++ b/animations/07-ambient-background/wave-layers/index.html@@ -25,11 +25,12 @@*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}/* A size container, so the waves are measured in cqh: hundredths of the stage's height *//* The sky glows lightest at the horizon and every layer is darker than that glow, the near ones darkest, so each- layer stands out against the one behind it and against the sky, however many are shown. The sky starts under the- stage's see-through border, so the border shows its dark top, not a repeat of its light bottom. */+ layer stands out against the one behind it and against the sky, however many are shown. The sky is painted inside+ the stage's see-through border only (the waves stop there too), so all four edges show the same faint line as on+ other pages, not the sky's light bottom. */.stage{position:relative;overflow:hidden;container-type:size;--dur:24s;--amp:11cqh;--sky1:#040b16;--sky2:#3f8fb5;--c1:#1f6386;--c2:#164d6c;--c3:#0f3a54;--c4:#08263b;- background:linear-gradient(var(--sky1) 20%,var(--sky2) 44%);background-origin:border-box}+ background:linear-gradient(var(--sky1) 20%,var(--sky2) 44%);background-clip:padding-box}.stage[data-pal="sunset"]{--sky1:#1a0b2e;--sky2:#f08a5d;--c1:#c04a5e;--c2:#8e2f5a;--c3:#5c1f4f;--c4:#2f1238}.stage[data-pal="night"]{--sky1:#03040b;--sky2:#43539c;--c1:#2a376f;--c2:#1f2856;--c3:#161c3e;--c4:#0d1129}.defs{position:absolute;width:0;height:0}