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's Compare copy is inert and hidden from screen readers, as every page's copies are
matinb3774726af63
diff --git a/animations/01-scroll-based/parallax-scrolling/index.html b/animations/01-scroll-based/parallax-scrolling/index.htmlindex 28526950..d63311bf 100644--- a/animations/01-scroll-based/parallax-scrolling/index.html+++ b/animations/01-scroll-based/parallax-scrolling/index.html@@ -253,12 +253,15 @@const stage = document.getElementById('stage');const main = document.getElementById('main');// Compare's left side: a copy of the scene without parallax, named "Without parallax". The copy loses its ids (its sky- // gradient gets one of its own), its labels and its start outlines.+ // gradient gets one of its own), its labels and its start outlines. It is inert and hidden from screen readers: the stage's+ // name says what each half shows.const twin = main.cloneNode(true);twin.querySelectorAll('.tag, .start').forEach(t => t.remove());twin.querySelectorAll('[id]').forEach(el => el.removeAttribute('id'));twin.removeAttribute('id');twin.classList.add('twin');+ twin.inert = true;+ twin.setAttribute('aria-hidden', 'true');twin.querySelector('linearGradient').id = 'sky-twin';twin.querySelector('rect[fill="url(#sky)"]').setAttribute('fill', 'url(#sky-twin)');twin.querySelector('.side').textContent = 'Without parallax';