404 / Not Found

404 / Not Found: Animated 404 pages in five styles: glitch scramble, magnetic digits, cursor spotlight, a fanning card stack and a typed terminal. Free MIT React & Next.js source with Motion and Tailwind CSS, live preview, CLI install and docs.

Install 404 / Not Found

npx motion-ui-skill add not-found

Components install as source into your project. The interactive page also includes preview, code, documentation and install tabs.

Dependencies

  • clsx
  • motion
  • react
  • tailwind-merge

Source files

404 / Not Found

Animated 404 pages in five styles: glitch scramble, magnetic digits, cursor spotlight, a fanning card stack and a typed terminal.

Install

Glitch

Digits scramble through random glyphs before resolving, with a chromatic split on hover.

npx motion-ui-skill add not-found-glitch

Magnetic

Each digit is cursor-attracted via the Magnetic wrapper and springs back on leave.

npx motion-ui-skill add not-found-magnetic

Spotlight

A dark panel where a cursor-tracked spotlight reveals the bright code from a dim base.

npx motion-ui-skill add not-found-spotlight

Stacked

A code card over a hidden stack that fans out with a spring on hover.

npx motion-ui-skill add not-found-stacked

Terminal

A terminal window that types a failed cd command and a 404 status, with a blinking caret.

npx motion-ui-skill add not-found-terminal

Dependencies

  • clsx
  • motion
  • react
  • tailwind-merge

Usage

Glitch usage

Digits scramble through random glyphs before resolving, with a chromatic split on hover.

"use client";

import { NotFoundGlitch } from "@/components/motion/not-found/glitch";

export function NotFoundGlitchPreview() {
  return (
    <div className="w-full">
      <NotFoundGlitch />
    </div>
  );
}

Magnetic usage

Each digit is cursor-attracted via the Magnetic wrapper and springs back on leave.

"use client";

import { NotFoundMagnetic } from "@/components/motion/not-found/magnetic";

export function NotFoundMagneticPreview() {
  return (
    <div className="w-full">
      <NotFoundMagnetic />
    </div>
  );
}

Spotlight usage

A dark panel where a cursor-tracked spotlight reveals the bright code from a dim base.

"use client";

import { NotFoundSpotlight } from "@/components/motion/not-found/spotlight";

export function NotFoundSpotlightPreview() {
  return (
    <div className="w-full">
      <NotFoundSpotlight />
    </div>
  );
}

Stacked usage

A code card over a hidden stack that fans out with a spring on hover.

"use client";

import { NotFoundStacked } from "@/components/motion/not-found/stacked";

export function NotFoundStackedPreview() {
  return (
    <div className="w-full">
      <NotFoundStacked />
    </div>
  );
}

Terminal usage

A terminal window that types a failed cd command and a 404 status, with a blinking caret.

"use client";

import { NotFoundTerminal } from "@/components/motion/not-found/terminal";

export function NotFoundTerminalPreview() {
  return (
    <div className="w-full">
      <NotFoundTerminal />
    </div>
  );
}

API Reference

NotFoundGlitch

Prop Type Default Required Description
className string — No —
code string 404 No The big status code.
title string Page not found No —
description string The page you are looking for moved, vanished, or never existed. No —
homeHref string — No —
homeLabel string — No —
browseHref string — No —
browseLabel string — No —

NotFoundMagnetic

Prop Type Default Required Description
className string — No —
code string 404 No The big status code.
title string Page not found No —
description string The page you are looking for moved, vanished, or never existed. No —
homeHref string — No —
homeLabel string — No —
browseHref string — No —
browseLabel string — No —

NotFoundSpotlight

Prop Type Default Required Description
className string — No —
code string 404 No The big status code.
title string Page not found No —
description string The page you are looking for moved, vanished, or never existed. No —
homeHref string — No —
homeLabel string — No —
browseHref string — No —
browseLabel string — No —

NotFoundStacked

Prop Type Default Required Description
className string — No —
code string 404 No The big status code.
title string Page not found No —
description string The page you are looking for moved, vanished, or never existed. No —
homeHref string — No —
homeLabel string — No —
browseHref string — No —
browseLabel string — No —

NotFoundTerminal

Prop Type Default Required Description
className string — No —
code string 404 No The big status code.
title string Page not found No —
description string The page you are looking for moved, vanished, or never existed. No —
homeHref string — No —
homeLabel string — No —
browseHref string — No —
browseLabel string — No —

Browse this category