Data-anim
Animate HTML with just data attributes
Details
- External ID
- 47377195
- Source
- HN
- Company
- —
- Product
- Data-anim
- Website domain
- github.com
- Launched
- March 14, 2026
- Cohort
- —
- Upvotes
- 19
- Upvotes percentile
- 0.7312423124231242
- Tags
- —
- Fetched at
- Sept. 7, 2026, 9:26 p.m.
- Updated at
- Sept. 7, 2026, 9:26 p.m.
Description
Hey HN, I built data-anim — an animation library where you never have to write JavaScript yourself.You just write: <div data-anim="fadeInUp">Hello</div> That's it. Scroll-triggered fade-in animation, zero JS to write.What it does:- 30+ built-in animations (fade, slide, zoom, bounce, rotate, etc.)- 4 triggers: scroll (default), load, click, hover- 3-layer anti-FOUC protection (immediate style injection → noscript fallback → 5s timeout)- Responsive controls: disable per device or swap animations on mobile- TypeScript autocomplete for all attributes- Under 3KB gzipped, zero dependenciesWhy I built this:I noticed that most animation needs on landing pages and marketing sites are simple — fade in on scroll, slide in from left, bounce on hover. But the existing options are either too heavy (Framer Motion ~30KB) or require JS boilerplate.I also think declarative HTML attributes are the most AI-friendly animation format. When LLMs generate UI, HTML attributes are the output they hallucinate least on — no selector matching, no JS API to misremember, no script execution order to get wrong.Docs: https://ryo-manba.github.io/data-anim/Playground: https://ryo-manba.github.io/data-anim/playground/npm: https://www.npmjs.com/package/data-animHappy to answer any questions about the implementation or design decisions.
Enrichment
- Theme
- code-driven AI video and animation
- Vertical
- Horizontal
- Function
- Dev tools
- Audience
- Developer
- AI stance
- Not AI
- Project type
- Commercial product
- Normalized one-liner
- html animation library using data attributes
- Manually corrected
- False
Could you build this?
Yes A lightweight JavaScript animation library that reads data attributes and applies CSS animation classes using IntersectionObserver is trivial to vibe-code.
Discussion
7 comments analyzed.
Concerns raised: Demo page scroll performance issues with blur filters, Chaining animations across different elements not supported
Feature requests: Chain/sequence animations (run one after another), Demo page showing all animations at once
Competitors
Other products that read as similar to this one — 69 launches clear the similarity bar, closest 8 shown.
Attention rank: #29 of 70 (itself plus its competitors, highest first — normalized so YC and Product Hunt are compared fairly).
Launched 136 days after the earliest competitor.
- React-Kino · hn · 2026-03-01 · 19 upvotes · similarity 0.42
- ReactiveWeb · github · 2026-09-11 · 6 upvotes · similarity 0.41
- Simple Anim Creator · ph · 2026-09-18 · 3 upvotes · similarity 0.40
- Website Scroll Video · ph · 2026-09-15 · 3 upvotes · similarity 0.40
- TermDOM · hn · 2026-08-11 · 18 upvotes · similarity 0.40
- Domphy · hn · 2026-06-19 · 11 upvotes · similarity 0.38
- AnimGen · ph · 2026-09-22 · 1 upvotes · similarity 0.37
- I made a Tailwind alternative for Preact · hn · 2026-01-11 · 6 upvotes · similarity 0.37
Other launches for this product
- No other launches for this product.
Same idea, different domain
Nobody's really built a dev tools tool for Sales yet.