terra vidhal

Topographic Lines

Backgrounds 1

About

An animated contour map drawn with marching squares where the pointer raises terrain and clicks send ripples.

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Topographic Lines to your project and fits it to your theme.

Code

How Topographic Lines is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

"use client";

/**
 * PrequelUI Animate — MIT — https://prequeluianimate.terravidhal.me
 */

import { TopographicLines } from "@/components/ui/topographic-lines";

export default function TopographicLinesDemo() {
  return (
    <TopographicLines className="flex min-h-screen items-center justify-center bg-[#f5f2ec] px-6 text-[#1b1b1f] dark:bg-[#0a0a0d] dark:text-[#e8e6e1]">
      <h1 className="relative z-10 text-balance text-center text-6xl font-semibold tracking-[-0.06em] sm:text-8xl">
        Contours
      </h1>
    </TopographicLines>
  );
}

Dependencies

More by terra vidhal

View all
  • Gravity Stars Background

    Gravity Stars Background

    3
  • Marquee

    Marquee

    1
  • Firework Burst

    Firework Burst

  • Glyph Field

    Glyph Field

  • Shimmering Text

    Shimmering Text

  • Kpi Counter

    Kpi Counter

  • Gradient Text

    Gradient Text

  • Radial Progress

    Radial Progress

More in Backgrounds

View all
  • Jade Sky

    Jade Sky

    114
  • Elegant Dark Pattern

    Elegant Dark Pattern

    942
  • Gradient Backgrounds

    Gradient Backgrounds

    33
  • Tailwind CSS Background Snippet

    Tailwind CSS Background Snippet

    622
  • Honey Ember Background

    Honey Ember Background

    100
  • Background snippets

    Background snippets

    116
  • Gradient Blur Bg

    Gradient Blur Bg

    38
  • Gradient Background 4

    Gradient Background 4

    304

Explore more

Part of PrequelUI Animate — browse the full library on 21st.dev.