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.
magicui.designThe MIT licenceSet up once
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.
npx shadcn@latest init
import { clsx, type ClassValue } from "clsx"
import { twMerge } from "tailwind-merge"
export function cn(...inputs: ClassValue[]) {
return twMerge(clsx(inputs))
}
Text effects
18Text that comes in word by word or letter by letter, with a choice of animations.
02Typing animation With paid plansText that types itself out, with a blinking cursor.
03Number ticker With paid plansA number that counts up to its value when it comes into view.
04Word rotate With paid plansOne word in a line that swaps for the next, over and over.
05Hyper text With paid plansLetters scramble through random characters, then settle on the word.
06Morphing text With paid plansWords that melt into one another.
07Aurora text With paid plansA word filled with slowly moving colour.
08Gradient text With paid plansA pill of text with a colour gradient sliding through it.
09Shiny text With paid plansA light that passes across grey text, as if it shines.
10Line shadow text With paid plansA heading with a striped shadow that keeps moving.
11Sparkles text With paid plansText with small stars that twinkle around it.
12Spinning text With paid plansA line of text set in a circle that keeps turning.
13Comic text With paid plansA word in a comic-book style, with halftone dots and a pop-in.
14Kinetic text With paid plansLetters grow bolder as the pointer passes over them.
153D flip text With paid plansEach letter flips over in 3D, one after another, on hover.
16Colour sweep text With paid plansA band of colour sweeps across the text, then it settles in black.
17Highlighter With paid plansMarks words as if with a highlighter pen or a hand-drawn underline.
18Text reveal on scroll With paid plansA paragraph that fills in word by word as you scroll.
Cards and borders
9A card with a soft light that follows the pointer and lights its border.
27Border beam With paid plansA short line of light that travels around a card's border.
28Shine border With paid plansA border with colour that slowly drifts around it.
29Glow card With paid plansA card with a coloured glow and a moving gradient border.
30Glare hover With paid plansA streak of light that crosses a card when you hover it.
31Bento grid With paid plansA grid of feature tiles in different sizes, each with a small animation.
32Warp background With paid plansA card that sits in a tunnel of moving lines.
33Backlight With paid plansA soft glow behind a picture or shape, taken from its own colours.
34Lens With paid plansA round magnifier that follows the pointer over an image or block.
Backgrounds
16A background of evenly spaced dots, faded at the edges.
36Grid pattern With paid plansA background of thin grid lines, with a few squares filled in.
37Animated grid With paid plansA grid background where squares fade in and out.
38Interactive grid With paid plansA grid background whose squares light up under the pointer.
39Flickering grid With paid plansA field of small squares that flicker, drawn on a canvas.
40Retro grid With paid plansA grid floor running away into the distance.
41Ripple With paid plansRings that pulse out from the middle, to put behind something.
42Meteors With paid plansThin streaks that fall across the background.
43Particles With paid plansFloating dots that drift and move away from the pointer.
44Light rays With paid plansSoft beams of light that shine down from the top.
45Striped pattern With paid plansA background of thin diagonal stripes.
46Hexagon pattern With paid plansA background of hexagon outlines.
47Noise texture With paid plansA fine grain to lay over flat colour.
48Dither With paid plansA moving pattern of small square dots, in your theme's colours.
49Glyph matrix With paid plansA grid of small characters that slowly shift.
503D particles With paid plansA field of particles that turns slowly in 3D.
Motion and lists
10A row of cards that scrolls on its own, without end.
52Animated list With paid plansA list where new items drop in at the top, one after another.
53Blur fade With paid plansContent that fades in from a blur as it comes into view.
54Animated beam With paid plansA beam of light that travels along a line between two boxes.
55Orbiting circles With paid plansIcons that circle around a centre on round paths.
56Dock With paid plansA row of icons that grow under the pointer, like the Mac dock.
57Icon cloud With paid plansA ball of icons that turns, and spins when you drag it.
58Scroll speed text With paid plansRows of text that slide faster the faster you scroll.
59Scroll progress With paid plansA thin bar at the top that fills as you read down the page.
60Progressive blur With paid plansA blur that grows towards the edge of a scrolling box.
Cursors and clicks
4Swaps the mouse pointer for your own shape inside an area.
62Smooth cursor With paid plansA pointer that glides after the mouse with a little spring.
63Cool mode With paid plansClicking a button sends little particles flying.
64Confetti With paid plansA burst of confetti for a moment worth celebrating.
Mockups and data
9A Safari window frame to show a site in.
66iPhone With paid plansAn iPhone frame to show an app screen in.
67Android phone With paid plansAn Android phone frame to show an app screen in.
68Terminal With paid plansA Mac terminal window where commands type themselves out.
69File tree With paid plansFolders and files you can open and close.
70Code comparison With paid plansTwo pieces of code side by side, before and after (Shiki).
71Globe With paid plansA globe that turns on its own and spins when you drag it (cobe).
72Dotted map With paid plansA world map drawn in dots, with markers.
73Circular progress With paid plansA round gauge that fills to a percentage.