Sign up and get 15% off every plan.

Sign up
Menu

Open-source library, MIT licence

Magic UI

Animated pieces for landing pages: moving text, glowing buttons and cards, backgrounds, marquees and device frames. 73 components, each running live with its code to copy. The first one under each heading is free; the rest come with paid plans.

Set up once

Every Magic UI component needs Tailwind CSS and a small helper called cn in your project. One command sets up both. After that, each component is one more command, or a file you paste in.

Tailwind, the theme and the cn helper (Magic UI uses the shadcn command)Terminal
npx shadcn@latest init
lib/utils.ts (init writes this for you)React
import { clsx, type ClassValue } from "clsx"
import { twMerge } from "tailwind-merge"

export function cn(...inputs: ClassValue[]) {
  return twMerge(clsx(inputs))
}

Text effects

18
01Text animateFree

Text that comes in word by word or letter by letter, with a choice of animations.

02Typing animation With paid plans

Text that types itself out, with a blinking cursor.

03Number ticker With paid plans

A number that counts up to its value when it comes into view.

04Word rotate With paid plans

One word in a line that swaps for the next, over and over.

05Hyper text With paid plans

Letters scramble through random characters, then settle on the word.

06Morphing text With paid plans

Words that melt into one another.

07Aurora text With paid plans

A word filled with slowly moving colour.

08Gradient text With paid plans

A pill of text with a colour gradient sliding through it.

09Shiny text With paid plans

A light that passes across grey text, as if it shines.

10Line shadow text With paid plans

A heading with a striped shadow that keeps moving.

11Sparkles text With paid plans

Text with small stars that twinkle around it.

12Spinning text With paid plans

A line of text set in a circle that keeps turning.

13Comic text With paid plans

A word in a comic-book style, with halftone dots and a pop-in.

14Kinetic text With paid plans

Letters grow bolder as the pointer passes over them.

153D flip text With paid plans

Each letter flips over in 3D, one after another, on hover.

16Colour sweep text With paid plans

A band of colour sweeps across the text, then it settles in black.

17Highlighter With paid plans

Marks words as if with a highlighter pen or a hand-drawn underline.

18Text reveal on scroll With paid plans

A paragraph that fills in word by word as you scroll.

Buttons

7

Cards and borders

9

Backgrounds

16

Motion and lists

10

Cursors and clicks

4

Mockups and data

9