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: Parallax Scrolling draws no start outlines under reduced motion, where they only lay on the cards' edges, and its notes name the halves as their labels read
matin9ad84f6ad081
diff --git a/animations/01-scroll-based/parallax-scrolling/index.html b/animations/01-scroll-based/parallax-scrolling/index.htmlindex d63311bf..ab62d641 100644--- a/animations/01-scroll-based/parallax-scrolling/index.html+++ b/animations/01-scroll-based/parallax-scrolling/index.html@@ -74,6 +74,8 @@.side{position:absolute;z-index:5;top:10px;left:10px;padding:5px 10px;border-radius:999px;background:rgba(11,11,13,.82);color:#f4f4f2;font:600 13px/1.2 var(--hb-font)}@media(prefers-reduced-motion:reduce){.layer{will-change:auto}}+ /* Under reduced motion no layer moves, so each start outline would lie exactly on its card's edge: none is drawn */+ @media(prefers-reduced-motion:reduce){.stage[data-hb-mode="inside"] .start{display:none}}</style><link rel="stylesheet" href="../../../assets/css/demo-page.css?v=9"><script src="../../../assets/js/demo-page.js?v=9" defer></script>@@ -181,7 +183,7 @@</div><div class="hb-mode-notes" aria-live="polite"><p data-hb-for="inside" hidden>Inside, the picture is four flat layers, each with a faint outline where it started: the far ones move least and the near grass most. Scroll the box or press Play to watch.</p>- <p data-hb-for="compare" hidden>Without parallax (left), every layer moves the same and the picture looks flat; with parallax (right), each moves its own amount and it looks deep. Scroll the box or press Play to watch.</p>+ <p data-hb-for="compare" hidden>Without parallax (left), every layer moves the same and the picture looks flat; With parallax (right), each moves its own amount and it looks deep. Scroll the box or press Play to watch.</p></div></section>@@ -308,7 +310,7 @@const NOTES = {moving: {inside: 'Inside, the picture is four flat layers, each with a faint outline where it started: the far ones move least and the near grass most. Scroll the box or press Play to watch.',- compare: 'Without parallax (left), every layer moves the same and the picture looks flat; with parallax (right), each moves its own amount and it looks deep. Scroll the box or press Play to watch.',+ compare: 'Without parallax (left), every layer moves the same and the picture looks flat; With parallax (right), each moves its own amount and it looks deep. Scroll the box or press Play to watch.',},movingFlat: {inside: 'Inside, the picture is four flat layers; Depth is set to Flat, so they all move the same and the picture looks flat. Scroll the box or press Play to watch.',@@ -316,7 +318,7 @@},still: {inside: 'Inside, the picture is four flat layers, shown still. Each bar shows how far that layer would move: least for the far sky, most for the near grass.',- compare: 'Both sides are shown still, as they stand halfway down the box: without parallax every layer has moved the same, with parallax each layer has moved its own amount.',+ compare: 'Both sides are shown still, as they stand halfway down the box: Without parallax, every layer has moved the same; With parallax, each layer has moved its own amount.',},stillFlat: {inside: 'Inside, the picture is four flat layers, shown still. Depth is set to Flat, so every bar is the same: the layers would all move together and the picture would look flat.',