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: home page head: one title and one description for search engines and social sites (it names the ready-made prompt), the author as the LICENSE names him, and a link to the sitemap
matinc6125b561f30
diff --git a/index.html b/index.htmlindex edee8980..c84c72b4 100644--- a/index.html+++ b/index.html@@ -5,12 +5,13 @@<meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="google-site-verification" content="2PnJemecfPix7j08I3cojuzPTfwKpwxxFMADFxv4wk8"><title>Animation Handbook — 166 Web Animation Techniques with Live Demos</title>-<meta name="description" content="A visual reference of 166 web animation techniques — scroll effects, page transitions, micro-interactions, text animation, 3D, and ambient backgrounds. Every entry is a live, dependency-free demo with an explanation of how it works.">+<meta name="description" content="A free visual reference of 166 web animation techniques, from scroll effects to 3D: each plays live and comes with a ready-made prompt for your AI assistant."><meta name="keywords" content="web animation, CSS animation, animation examples, scroll animation, page transitions, micro-interactions, kinetic typography, WebGL, frontend animation reference, motion design, animation handbook">-<meta name="author" content="matinmonshizadeh">+<meta name="author" content="Matin Monshizadeh"><meta name="robots" content="index, follow, max-image-preview:large"><meta name="theme-color" content="#f8f7f4"><link rel="canonical" href="https://matinmonshizadeh.github.io/animation-handbook/">+<link rel="sitemap" type="application/xml" title="Sitemap" href="sitemap.xml"><link rel="icon" type="image/png" sizes="96x96" href="favicon.png"><link rel="icon" type="image/svg+xml" href="favicon.svg"><link rel="apple-touch-icon" href="apple-touch-icon.png">@@ -19,7 +20,7 @@<meta property="og:type" content="website"><meta property="og:site_name" content="Animation Handbook"><meta property="og:title" content="Animation Handbook — 166 Web Animation Techniques with Live Demos">-<meta property="og:description" content="A visual reference of 166 web animation techniques. Every entry is a live, dependency-free demo with an explanation of how it works.">+<meta property="og:description" content="A free visual reference of 166 web animation techniques, from scroll effects to 3D: each plays live and comes with a ready-made prompt for your AI assistant."><meta property="og:url" content="https://matinmonshizadeh.github.io/animation-handbook/"><meta property="og:image" content="https://matinmonshizadeh.github.io/animation-handbook/og-image.png"><meta property="og:image:width" content="1200">@@ -27,8 +28,8 @@<!-- Twitter --><meta name="twitter:card" content="summary_large_image">-<meta name="twitter:title" content="Animation Handbook — 166 Web Animation Techniques">-<meta name="twitter:description" content="A visual reference of 166 web animation techniques. Every entry is a live, dependency-free demo you can open in the browser.">+<meta name="twitter:title" content="Animation Handbook — 166 Web Animation Techniques with Live Demos">+<meta name="twitter:description" content="A free visual reference of 166 web animation techniques, from scroll effects to 3D: each plays live and comes with a ready-made prompt for your AI assistant."><meta name="twitter:image" content="https://matinmonshizadeh.github.io/animation-handbook/og-image.png"><!-- Structured data: parsed by search + AI answer engines -->@@ -38,9 +39,9 @@"@type": "WebSite","name": "Animation Handbook","url": "https://matinmonshizadeh.github.io/animation-handbook/",- "description": "A visual reference of 166 web animation techniques, each with a live, dependency-free demo and an explanation of how it works.",+ "description": "A free visual reference of 166 web animation techniques, from scroll effects to 3D: each plays live and comes with a ready-made prompt for your AI assistant.","inLanguage": "en",- "author": { "@type": "Person", "name": "matinmonshizadeh" },+ "author": { "@type": "Person", "name": "Matin Monshizadeh" },"about": ["web animation", "CSS animation", "motion design", "frontend development"],"keywords": "web animation, CSS animation, scroll animation, page transitions, micro-interactions, kinetic typography, WebGL, motion design"}diff --git a/tests/pages.test.js b/tests/pages.test.jsindex 2c51a68e..a9ad564b 100644--- a/tests/pages.test.js+++ b/tests/pages.test.js@@ -611,6 +611,24 @@ test('a typed word also finds the cards that use another word of its group, afte}});+test('the home page head gives search engines and social sites one title, one description and the author', () => {+ const head = between(HOME, '<head>', '</head>');+ const meta = attr => { const m = head.match(new RegExp(`<meta ${attr} content="([^"]*)">`)); return m && decode(m[1]); };+ const ld = JSON.parse(between(head, '<script type="application/ld+json">', '</script>').replace('<script type="application/ld+json">', ''));+ const title = decode((head.match(/<title>([^<]*)<\/title>/) || [])[1] || '');+ assert.ok(title, 'the home page has a title');+ for (const attr of ['property="og:title"', 'name="twitter:title"']) assert.equal(meta(attr), title, attr);+ const description = meta('name="description"');+ assert.ok(description && description.length <= 160, `the description has at most 160 characters (${description && description.length}): ${description}`);+ assert.match(description, /ready-made prompt for your AI assistant/, 'the description names the prompt');+ for (const attr of ['property="og:description"', 'name="twitter:description"']) assert.equal(meta(attr), description, attr);+ assert.equal(ld.description, description, 'JSON-LD description');+ const holder = read(path.join(ROOT, 'LICENSE')).match(/^Copyright \(c\) \d{4} (.+)$/m)[1].trim();+ assert.equal(meta('name="author"'), holder, 'meta author: the name in the LICENSE');+ assert.equal(ld.author && ld.author.name, holder, 'JSON-LD author: the name in the LICENSE');+ assert.match(head, /<link rel="canonical" href="[^"]*">\r?\n<link rel="sitemap" type="application\/xml" title="Sitemap" href="sitemap\.xml">\r?\n/, 'the sitemap link, right after the canonical link');+});+test('every place has one tile, one phone-bar chip and one count, and the markup names no other place', () => {// The opening tags of the page's markup: scripts, styles and comments left out.const tags = HOME.replace(/<script\b[\s\S]*?<\/script>|<style\b[\s\S]*?<\/style>|<!--[\s\S]*?-->/g, '').match(/<[a-z][^>]*>/g);