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: an address that names a place and the finder opens the place without first hiding the hero and the tiles, as the page reads it
matin713a808b2f90
diff --git a/index.html b/index.htmlindex e81092f5..0cf6543b 100644--- a/index.html+++ b/index.html@@ -51,9 +51,9 @@// throws, and the system's setting must still count. The browser's bar (theme-color) takes the page's background of the theme.function setTheme(t){document.documentElement.dataset.theme=t;document.querySelector('meta[name="theme-color"]').content=t==='dark'?'#0e0e11':'#f8f7f4';}(function(){var t=matchMedia('(prefers-color-scheme: light)').matches?'light':'dark';try{t=localStorage.getItem('ah-theme')||t;}catch(e){}setTheme(t);})();-// An address that opens the finder (?view=find, and no ?q=, which wins) hides the hero and the place tiles until the page's script-// has drawn the view, so the start page is not painted first.-(function(){var p=new URLSearchParams(location.search);if(p.get('view')==='find'&&!(p.get('q')||'').trim())document.documentElement.classList.add('fd-direct');})();</script>+// An address that opens the finder (?view=find, and no ?q= or ?place=, which win) hides the hero and the place tiles until the page's+// script has drawn the view, so the start page is not painted first.+(function(){var p=new URLSearchParams(location.search);if(p.get('view')==='find'&&!(p.get('q')||'').trim()&&!p.get('place'))document.documentElement.classList.add('fd-direct');})();</script><script src="assets/js/demo-page.js?v=8" defer></script><style>@font-face{font-family:'Schibsted Grotesk';src:url('assets/fonts/schibsted-latin-ext.woff2') format('woff2');font-weight:400 900;font-display:swap;unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}diff --git a/tests/finder.test.js b/tests/finder.test.jsindex 2e810f4b..8eddffe0 100644--- a/tests/finder.test.js+++ b/tests/finder.test.js@@ -481,7 +481,7 @@ test('an address that opens the finder hides the hero and the place tiles from tassert.ok(head && at(head) < at('</head>'), 'the line runs in the head');const page = finder({ URLSearchParams, location: { search: '' } });vm.runInContext(source('fromURL'), page);- for (const search of ['?view=find', '?view=find&what=text&how=fade', '?q=%20&view=find', '?q=fade&view=find', '?view=all', '?what=text', '']) {+ for (const search of ['?view=find', '?view=find&what=text&how=fade', '?q=%20&view=find', '?q=fade&view=find', '?place=buttons&view=find', '?view=all', '?what=text', '']) {const added = [];vm.runInNewContext(head, { URLSearchParams, location: { search }, document: { documentElement: { classList: { add: name => added.push(name) } } } });page.location.search = search;