Skip to content

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.

fix: Infinite Zoom (06.26): the stage's background color is a CSS variable

matin046b559a6c62
diff --git a/animations/06-3d-advanced/infinite-zoom/index.html b/animations/06-3d-advanced/infinite-zoom/index.html
index fdb33498..87b43410 100644
--- a/animations/06-3d-advanced/infinite-zoom/index.html
+++ b/animations/06-3d-advanced/infinite-zoom/index.html
@@ -23,7 +23,7 @@
<style>
:root{--ui-accent:#3fd6c4;--edge:#3fd6c4}
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
- .stage{position:relative;overflow:hidden;background:#0b0b0d}
+ .stage{--bg:#0b0b0d;position:relative;overflow:hidden;background:var(--bg)}
canvas{display:block;width:100%;height:100%}
</style>
<link rel="stylesheet" href="../../../assets/css/demo-page.css?v=6">