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: the lesson nav's title "Learning path" is a heading, so heading navigation finds it
matin84af66f4a9ed
diff --git a/animations/01-scroll-based/parallax-scrolling/index.html b/animations/01-scroll-based/parallax-scrolling/index.htmlindex ea82317b..06fbc420 100644--- a/animations/01-scroll-based/parallax-scrolling/index.html+++ b/animations/01-scroll-based/parallax-scrolling/index.html@@ -233,7 +233,7 @@<div class="hb-rel-list"></div></section><nav class="hb-lesson-nav" aria-label="Learning path">- <p class="hb-lesson-title">Learning path</p>+ <h2 class="hb-lesson-title">Learning path</h2><a class="hb-lesson-prev" href="../../../learn/far-things-move-slower/"><span>← Lesson 21</span><b>Far things move slower</b></a><a class="hb-lesson-next" href="../../06-3d-advanced/parallax-3d-tilt/"><span>Lesson 23 →</span><b>Parallax 3D Tilt</b></a><a class="hb-lesson-all" href="../../../learn/">All 25 lessons</a>diff --git a/learn/far-things-move-slower/index.html b/learn/far-things-move-slower/index.htmlindex 0357b41a..52391ea8 100644--- a/learn/far-things-move-slower/index.html+++ b/learn/far-things-move-slower/index.html@@ -144,7 +144,7 @@</section><nav class="hb-lesson-nav" aria-label="Learning path">- <p class="hb-lesson-title">Learning path</p>+ <h2 class="hb-lesson-title">Learning path</h2><a class="hb-lesson-prev" href="../../animations/03-page-transitions/flip-technique/"><span>← Lesson 20</span><b>FLIP Technique</b></a><a class="hb-lesson-next" href="../../animations/01-scroll-based/parallax-scrolling/"><span>Lesson 22 →</span><b>Parallax Scrolling</b></a><a class="hb-lesson-all" href="../">All 25 lessons</a>diff --git a/learn/follows-the-scroll/index.html b/learn/follows-the-scroll/index.htmlindex 71e36bd9..f8d18831 100644--- a/learn/follows-the-scroll/index.html+++ b/learn/follows-the-scroll/index.html@@ -122,7 +122,7 @@</section><nav class="hb-lesson-nav" aria-label="Learning path">- <p class="hb-lesson-title">Learning path</p>+ <h2 class="hb-lesson-title">Learning path</h2><a class="hb-lesson-prev" href="../../animations/04-micro-interactions/loading-spinner/"><span>← Lesson 10</span><b>Loading Spinner</b></a><a class="hb-lesson-next" href="../../animations/01-scroll-based/reveal-on-scroll/"><span>Lesson 12 →</span><b>Reveal on Scroll</b></a><a class="hb-lesson-all" href="../">All 25 lessons</a>diff --git a/tests/learn.test.js b/tests/learn.test.jsindex 7daf6f8e..5b499cb8 100644--- a/tests/learn.test.js+++ b/tests/learn.test.js@@ -87,7 +87,7 @@ for (const { step, dir } of onPath) {assert.ok(html.includes(line), `lesson line: ${line}`);const nav = html.match(/<nav class="hb-lesson-nav" aria-label="Learning path">([\s\S]*?)<\/nav>/);assert.ok(nav, 'lesson nav');- assert.ok(nav[1].includes('<p class="hb-lesson-title">Learning path</p>'), 'lesson nav title');+ assert.ok(nav[1].includes('<h2 class="hb-lesson-title">Learning path</h2>'), 'lesson nav title');const prev = STEPS[step.n - 2], next = STEPS[step.n];for (const [cls, other, label] of [['hb-lesson-prev', prev, prev && `← Lesson ${prev.n}`], ['hb-lesson-next', next, next && `Lesson ${next.n} →`]]) {const a = nav[1].match(new RegExp(`<a class="${cls}" href="([^"]+)"><span>([^<]+)</span><b>([^<]+)</b></a>`));