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: Aurora / Northern Lights: in See inside each star keeps its own size, so Stars in the sky shows while the sky is drawn at half size

matin4ef5f879dbc1
diff --git a/animations/07-ambient-background/aurora/index.html b/animations/07-ambient-background/aurora/index.html
index 47859309..f036ee2a 100644
--- a/animations/07-ambient-background/aurora/index.html
+++ b/animations/07-ambient-background/aurora/index.html
@@ -82,6 +82,8 @@
/* See inside: the sky, the stars, the bands (their clip opened) and the ground strip at half size around the box's middle,
a dashed window where the box's own picture is, a veil outside it, and the bands' outlines above the veil */
.stage[data-hb-mode="inside"] .sky,.stage[data-hb-mode="inside"] .stars-layer,.stage[data-hb-mode="inside"] .aurora-wrap,.stage[data-hb-mode="inside"] .horizon{scale:.5}
+ /* Each star keeps its own size while the sky is drawn at half size */
+ .stage[data-hb-mode="inside"] .star{scale:2}
.stage[data-hb-mode="inside"] .horizon{transform-origin:50% calc(-22 / 28 * 100%)}
.stage[data-hb-mode="inside"] .aurora-wrap{overflow:visible}
.stage[data-hb-mode="inside"] .win{display:block;position:absolute;left:25%;top:25%;width:50%;height:50%;outline:2px dashed #f4f4f2;box-shadow:0 0 0 100vmax rgba(2,5,10,.62)}