Soften the auras and keep path nodes scroll-driven
Blur and re-shape the three backdrop auras so they read as diffuse light rather than hard blobs. Run the spine scroll logic under reduced motion too, so nodes no longer appear pre-lit when animation is disabled. Bump the peacock bob to 6px over 6s.
This commit is contained in:
1 parent
ece51f3f06
commit
8ead408ff2
2 files changed
+31
-26
No files matched your search
+6
-9
@@ -44,14 +44,11 @@
|
||||
}
|
||||
|
||||
if (sw) {
|
||||
if (reduce) {
|
||||
if (fill) fill.style.height = "100%";
|
||||
stages.forEach(function (stage) { stage.classList.add("lit"); });
|
||||
} else {
|
||||
var onsc = function () { if (!tick) { tick = true; requestAnimationFrame(spine); } };
|
||||
addEventListener("scroll", onsc, { passive: true });
|
||||
addEventListener("resize", onsc);
|
||||
spine();
|
||||
}
|
||||
var onsc = function () { if (!tick) { tick = true; requestAnimationFrame(spine); } };
|
||||
addEventListener("scroll", onsc, { passive: true });
|
||||
addEventListener("resize", onsc);
|
||||
addEventListener("load", onsc);
|
||||
if ("ResizeObserver" in window) new ResizeObserver(onsc).observe(sw);
|
||||
spine();
|
||||
}
|
||||
})();
|
||||
Reference in new issue
Block a user