Data-anim
Animate HTML with just data attributes
Get picks like this daily. Today's launch numbers, the top launches, AI and tech news, and a daily opportunity pick, straight to your inbox.
Want to reach these readers? Sponsor an issue.
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.
HN · launched Mar 14, 2026 · 19 upvotes (top 27%) · 0 views
Niche: animation and motion graphics software · 229 launches, 11 in the last 7 days ▼ -52% · Explore this niche →
Category and tags
- Horizontal
- Dev tools
- Developer
- Not AI
- Hobby / open-source project
Visit website ↗ Source listing ↗
More like this: all 229 launches in animation and motion graphics software →
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 : 154 launches clear the similarity bar, closest 8 shown.
Attention rank: #64 of 155 (itself plus its competitors, highest first, normalized so YC and Product Hunt are compared fairly).
Launched 136 days after the earliest competitor.
- notch-launch-animation · github · 2026-10-13 · 10 upvotes · similarity 0.42
- 15 Interactive Web Animations · ph · 2026-10-02 · 2 upvotes · similarity 0.42
- Made for Award · ph · 2026-10-08 · 1 upvotes · similarity 0.42
- HTML TO MOTION · ph · 2026-10-26 · 2 upvotes · similarity 0.42
- ReactiveWeb · github · 2026-09-11 · 6 upvotes · similarity 0.42
- React-Kino · hn · 2026-03-01 · 19 upvotes · similarity 0.42
- Shaken UI · ph · 2026-11-15 · 1 upvotes · similarity 0.41
- ascii · github · 2026-10-07 · 750 upvotes · similarity 0.40
The niche, labels, vibe code rating and competitor comparison on this page are analysis by Nicheloom. If you use them, please credit nicheloom.com. How you may use our data.