AI Website Templates · 2026-10-05 · 7 min read
Magic UI, Aceternity UI, React Bits and 21st.dev Compared: Which Animated Library for Which Job
Four names dominate animated React components in 2026: Magic UI, Aceternity UI, React Bits and 21st.dev. They all let you copy polished, motion-heavy code into a project, but they are built for different jobs. This guide compares them side by side, says what each does best, and explains where a component library stops and a complete animated page begins.
Written by AmJ, founder of Scrollhaus, and edited by the Scrollhaus editorial team. Sources and methodology are documented in the article.

Key takeaways
Disclosure: ScrollHaus, a library of complete animated websites, publishes this guide. Facts about each library come from its public pages and GitHub repository, read on October 5, 2026. Counts and prices change quickly, so check the live pages before you decide.
Quick answer: which animated component library should you use?
- Magic UI if you build with shadcn/ui and want a library of polished animated components and effects, with paid landing-page blocks if you need them.
- Aceternity UI if you want dramatic, showpiece effects (backgrounds, cards, 3D) and are happy to pay once for a bigger block and template pack.
- React Bits if you want the largest free set of animated pieces, with a JavaScript or TypeScript and CSS or Tailwind variant for each.
- 21st.dev if you want a searchable registry of community components that AI agents can also pull in.
All four are component libraries. They solve "I need a good animated button, background or card". They do not solve "I need a whole landing page that already scrolls well". That second job is where full-page templates come in, and the last section covers when to use which.
Magic UI, Aceternity UI, React Bits and 21st.dev at a glance
| Magic UI | Aceternity UI | React Bits | 21st.dev | |
|---|---|---|---|---|
| What it is | Animated components for design engineers | Animated components, blocks and templates | Open-source animated, interactive React components | Community registry of components, templates and themes |
| Free set | 150+ components and effects | 116+ components | 200+ components | Browse everything; 2 free component copies per day |
| Paid | Pro: 50+ blocks and templates | All-access: 180+ blocks, 17 templates, 2 full landing pages (one-time) | A Pro version exists | Membership for unlimited copies and premium templates |
| Stack | React, TypeScript, Tailwind CSS, Motion | React or Next.js, Tailwind CSS, Motion | React, four variants: JS-CSS, JS-TW, TS-CSS, TS-TW | React, Tailwind CSS, shadcn/ui |
| Install | shadcn CLI | shadcn CLI, copy and paste | shadcn CLI or jsrepo | shadcn CLI, or copy a prompt for an AI agent |
| Licence | Open source | Commercial use allowed per its FAQ | MIT with Commons Clause | Per component, set by each author |
| AI agents | MCP available | Works with any editor | Works with any editor | Magic MCP for Cursor, Claude, v0, Lovable and Devin |
Counts are the numbers each site advertises on October 5, 2026. Treat them as a guide rather than a spec, because all four add components weekly.
Magic UI: shadcn-friendly motion
Magic UI describes itself as a UI library for design engineers and a companion to shadcn/ui. Its 150+ free components cover animated text, backgrounds, bento grids, marquees and effects, all built with React, TypeScript, Tailwind CSS and Motion (the library formerly known as Framer Motion). You add pieces one at a time with the shadcn CLI, so you only ship what you use. Magic UI Pro adds 50+ blocks and templates for assembling a landing page quickly.
Best for: teams that already use shadcn/ui and want a consistent, restrained animated layer on top. Watch for: blocks and templates sit behind the paid tier.
Aceternity UI: showpiece effects
Aceternity UI offers 116+ free components such as a 3D card effect, background beams and infinite moving cards, built with React, Tailwind CSS and Motion. Its paid all-access plan unlocks 180+ blocks, 17 templates and 2 full landing pages as a one-time purchase, which suits freelancers who reuse the same kit across clients. Components are copied into your code, then customised.
Best for: hero sections and marketing pages where one memorable effect matters. Watch for: bold effects can cost performance on low-end phones, so test before you ship.
React Bits: the biggest free set
React Bits is an open-source collection of animated, interactive and customisable React components, with 200+ pieces across text animations, UI elements, micro-interactions and backgrounds. Every component ships in four variants (JS-CSS, JS-TW, TS-CSS, TS-TW), so it fits plain CSS and Tailwind projects alike. It is licensed under MIT with the Commons Clause, which allows personal and commercial use, and it installs through the shadcn CLI or jsrepo. Its GitHub repository shows about 48,500 stars.
Best for: developers who want a large free library with a variant for their exact stack. Watch for: read the Commons Clause before you plan to resell the components themselves.
21st.dev: a registry rather than one library
21st.dev is a community registry with 12,000+ components, templates and shadcn themes from many authors. You browse and preview live, then install through the shadcn CLI or copy a ready-made prompt for an AI agent. Code lands in your repository as editable code, not as a dependency. The free tier lets you browse everything and copy two components a day. A membership adds unlimited copies and premium templates, and its Magic MCP lets Cursor, Claude, v0, Lovable and Devin pull components directly.
Best for: finding a very specific component fast, or letting an AI agent choose from a large catalogue. Watch for: styles vary by author, so a page built from many contributors needs a design pass to feel coherent.
Component library or complete page: how to choose
A component library gives you parts. You still decide the layout, the pacing of the scroll, the media, the copy, and how the whole page behaves on a phone. That is the right unit when you are building an app or a product site and need animated pieces inside a design you control.
A complete animated page is a different unit. It is a finished scroll experience with its media, scroll timing and sections already worked out. ScrollHaus is built around that second unit: each website opens as a live, scrollable preview, then you take its source and a build prompt into your AI builder. Many projects use both. A marketing page can start from a complete template, while the product UI behind it uses components from Magic UI, Aceternity UI, React Bits or 21st.dev.
A simple decision rule
- Need one animated element inside an existing design: use a component library.
- Need a whole landing page with a scroll story: start from a complete page, such as the ones in our animated website templates for AI builders guide.
- Need prompts for an AI builder to generate a direction: see our MotionSites review and three-way library comparison.
- Building with Claude Code or Cursor: combine a registry or MCP with a complete reference page.
Copy-and-paste UI versus a package dependency
Traditional React component libraries ship as an npm package you import. These four work differently: you copy the code into your repository, so you own it, can edit any detail and add no runtime dependency beyond React, Tailwind CSS and Motion. The trade-off is maintenance. When a component improves upstream, you update your copy yourself. Many teams pair copy-and-paste animated components with an unstyled primitive layer such as Radix UI, which handles accessibility and keyboard behaviour while the animated library handles looks. If you are building a SaaS landing page, that mix works well: reusable Radix primitives underneath, animated UI blocks on top, customised to your design system in your own Next.js app.
When you compare options, ask four things: can I read and change the code, is the licence compatible with my use, does it support my stack (Tailwind or plain CSS, JavaScript or TypeScript), and does it stay fast on a phone. Beautiful UI that stutters on a mid-range device costs more than it earns.
Using these libraries with AI coding tools
Because all four copy code into your project, they suit AI builders well: the agent can read, edit and extend the code it received. 21st.dev's Magic MCP and Magic UI's MCP make that explicit, and any of the libraries works when you paste a component's code or prompt into Claude Code, Cursor or Lovable. Keep prompts specific ("add the background beams component to the hero, keep the existing headline") instead of asking an agent to rebuild a page from a screenshot.
Performance and accessibility checklist
- Test every animated component on a mid-range phone, not only on a laptop.
- Respect
prefers-reduced-motion: pause or simplify motion for people who ask for it. - Avoid stacking several full-screen effects in one viewport.
- Keep text readable over animated backgrounds, with enough contrast at every frame.
- Check licences, especially for resale or template businesses.
For motion performance in depth, read our scroll animation performance guide.
Which one should you start with?
If you are on shadcn/ui already, start with Magic UI. If you want maximum free choice, start with React Bits. If you want a dramatic one-off effect, try Aceternity UI. If you want to search a huge catalogue or hand the choice to an AI agent, use 21st.dev. And if what you actually need is a finished animated page, browse the live previews on ScrollHaus and take one as your starting point.
Explore animated website templates at Scrollhaus →
Need help with a template, account, or project? Email admin@scrollhaus.ai.