demo-animation-v2
Skill3 starsChanged 6 months agoMITView on GitHub
Generate the recommended responsive self-playing HTML product demo. Creates a single-file index.html with intro screen, dashboard mockup, step-by-step animation, captions, timeline controls, piano music, cursor animation, highlights, ending screen, mobile controls, touch gestures, fullscreen API, landscape hint, and prefers-reduced-motion support.
In this repository47 other files it gives its agents.
- agents-md-writerSkill
- ai-image-run-pacingSkill
- automation-state-reconcilerSkill
- backup-readiness-auditorSkill
- brand-voice-linterSkill
- case-study-writerSkill
- client-delivery-auditorSkill
- client-intake-builderSkill
- client-workspace-scaffolderSkill
- code-deduplicatorSkill
- cold-outreach-writerSkill
- demo-animationSkill
- discovery-briefSkill
- em-dash-removerSkill
- etsy-listing-optimizerSkill
- follow-up-radarSkill
- github-profile-proof-updaterSkill
- github-safe-publisherSkill
- idea-inboxSkill
- implement-client-feedbackSkill
- lead-scorerSkill
- llms-txt-generatorSkill
- local-app-public-demoSkill
- media-spec-checkerSkill
- obsidian-daily-noteSkill
- ops-status-reportSkill
- outreach-pipeline-designerSkill
- php-form-mailerSkill
- proposal-writerSkill
- release-announcement-writerSkill
- remove-ai-image-metadataSkill
- research-brief-curatorSkill
- research-to-articleSkill
- screen-recorderSkill
- session-handoffSkill
- skill-builderSkill
- skill-reviewerSkill
- social-campaign-proof-trackerSkill
- skill-nameSkill
- thumbnail-legibility-checkSkill
- thumbnail-set-designerSkill
- vault-janitorSkill
- verify-public-claimsSkill
- web-scraperSkill
- website-change-verifierSkill
- windows-reinstall-plannerSkill
- write-evidence-backed-profileSkill
The file
We split this skill into the rules it gives an agent
8 rules. About 0 are common, 2 are distinctive, and 6 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
6
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 22
Read CLAUDE.md, README, main files.
- Very specific: line 30
Read assets/template.html from this skill folder.
- Very specific: line 34
Read the template, replace all {{PLACEHOLDER}} markers, and write the result to demo/index.html.
- Very specific: line 82
Add if(dead(id))return; after every await.
- Very specific: line 84
Call hideCursor() at the end of each step.
- Very specific: line 91
Every $('#id') must target an element that exists.
- Distinctive: line 93
Keep wait times reasonable: 800-1500ms for reading, 300-600ms for animations.
- Very specific: line 97
Write to demo/index.html. Tell the user:
≈ “Common” is an estimate: at least 1 in 5 of the 372,429 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Demo Animation v2
Generate the recommended responsive self-playing HTML product demo. Output: demo/index.html.
How it works
This skill uses assets/template.html as the reusable demo engine. Read the template, fill in all {{PLACEHOLDER}} markers with project-specific content, and write the completed single-file demo to demo/index.html.
The template contains the complete reusable engine: CSS framework, JS animation system, mobile controls, touch gestures, fullscreen, piano music, and accessibility support.
Workflow
1. Read the project
Read CLAUDE.md, README, main files. Identify: product name, tagline, color palette, font stack, 6-10 key features, UI layout type.
2. Plan steps briefly
List 6-10 demo steps for the user. Do not wait for confirmation unless unsure. Start generating.
3. Read the template
Read assets/template.html from this skill folder. This is your base file.
4. Fill placeholders and write
Read the template, replace all {{PLACEHOLDER}} markers, and write the result to demo/index.html.
Placeholder reference
Metadata:
{{PAGE_TITLE}}- e.g. "My Project Demo"{{GOOGLE_FONTS_LINK}}-<link href="https://fonts.googleapis.com/css2?family=...&display=swap" rel="stylesheet">
CSS variables:
{{PRIMARY_DARK}}, {{PRIMARY_DARK_LIGHT}}, {{ACCENT}}, {{ACCENT_LIGHT}}, {{ACCENT_GLOW}}, {{BG_LIGHT}}, {{BG_LIGHT_DARK}}, {{BORDER}}, {{TEXT}}, {{TEXT_LIGHT}}, {{FONT_SERIF}}, {{FONT_SANS}}
Content:
{{PANE_CSS}}- CSS for tab pane layouts.{{INTRO_CONTENT}}- Logo, subtitle, and tagline divs. The button is already in the template.{{NAV_BRAND_NAME}}/{{NAV_APP_NAME}}- Navbar text.{{NAV_TABS}}- Tab buttons:<div class="nav-tab active" id="tab-NAME">Label</div>.{{TAB_PANES}}- Tab content:<div class="tab-pane active pane-NAME" id="pane-NAME">...</div>.{{TIMELINE_STEPS}}-<div class="tl-step-v" data-step="N"><div class="tl-dot"></div><div class="tl-label">Name</div></div>.{{ENDING_CONTENT}}- Title, subtitle, and URL divs.
JavaScript:
{{TOTAL_STEPS}}- Number, e.g.8.{{RESET_ALL_UI}}-function resetAllUI(){ ... }resets all DOM changes.{{STEP_FUNCTIONS}}- Allasync function stepN(id){ ... }functions.{{STEPS_ARRAY}}-step0,step1,...,stepN.{{EXTRA_JS}}- Project-specific JS, or an empty string.
Step function pattern
async function step0(id){
showTab('tabname');
updateTimeline(0);
setCaption('Step 1 of N','Headline','Detail.');
await wait(1200,id);if(dead(id))return;
const el=$('#element');
await moveCursor(getCenter(el).x,getCenter(el).y,500,id);
if(dead(id))return;
showHighlight(el);
await wait(1000,id);if(dead(id))return;
hideHighlight();
hideCursor();
}Rules:
showTab()andupdateTimeline()first.- Add
if(dead(id))return;after everyawait. - Pass
idtomoveCursor(x,y,dur,id)andwait(ms,id). - Call
hideCursor()at the end of each step.
Available helpers: showTab(name), setCaption(step,text,detail), hideCaption(), moveCursor(x,y,dur,id), hideCursor(), showHighlight(el), hideHighlight(), showToast(msg), updateTimeline(idx), typeText(el,text,speed), scrollToShow(el,container), getCenter(el), getLocalPos(el), wait(ms,id), dead(id).
Rules
- File must be self-contained except Google Fonts.
- Every
$('#id')must target an element that exists. - Design realistic UI matching the actual product.
- Keep wait times reasonable: 800-1500ms for reading, 300-600ms for animations.
Output
Write to demo/index.html. Tell the user:
Demo created at `demo/index.html`. Open it in a browser to preview. Fully responsive: desktop, tablet, and mobile.Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

