SVG Shapes Animated

PreviousNext

Wide viewBox SVG shapes with scroll-triggered stroke drawing via Motion, plus extra primitives and panels beyond the static svg-shapes set.

SVG shapes (animated)

Same wide viewBox geometry as the static set, with paths drawn via motion/react when each graphic scrolls into view. Respects prefers-reduced-motion.

Polygons and curves

Triangle

Equilateral triangle shape

Circle

Circular shape

Ellipse

Horizontal ellipse shape

Semicircle (D panel)

Semicircle D-shape with flat left edge

Right triangle

Right triangle shape

Kite

Kite shape

Pennant

Pennant flag shape tapering to a point

Quarter circle

Quarter circle fan wedge

Rounded and architectural

Rounded square

Rounded square shape

Rounded triangle

Rounded triangle shape

Squircle

Squircle superellipse shape

Gothic arch panel

Gothic pointed arch panel

Inverted arch panel

Inverted arch panel with concave bottom

Arrow pentagon

Arrow pentagon shape

Primitives

Diamond

Diamond rhombus shape

Trapezoid

Trapezoid shape wider at base

Octagon

Octagonal shape

Parallelogram

Parallelogram shape with softened corners

Chevron

Chevron arrow shape

Cross

Cross plus shape

Pill

Pill or stadium rounded rectangle shape

Panels

Ribbon banner

Ribbon banner with softened end notches

Hourglass / bowtie

Hourglass panel with softened waist

Scalloped top

Rectangular panel with scalloped top edge

Corner bite

Rounded rectangle with bottom-right circular bite

Double notch

Tech shape with double top notches and side steps

Ogee onion dome

Ogee arch panel with pointed crest

Sacred geometry

Vesica piscis

Vesica Piscis — two overlapping circles

Seed of life

Seed of Life — seven overlapping circles

Flower of life

Flower of Life — 19 overlapping circles

Metatron cube

Metatron's Cube — 13 circles connected by lines

Sri Yantra

Sri Yantra — nine interlocking triangles

Golden spiral

Golden spiral within nested golden rectangles

Torus tube

Tube torus — overlapping rings

Platonic solids (wireframe)

Tetrahedron

Tetrahedron wireframe projection

Cube

Cube wireframe projection

Octahedron

Octahedron wireframe projection

Icosahedron

Icosahedron wireframe projection

Dodecahedron

Dodecahedron wireframe projection

Flip prop

none

Pennant flag shape tapering to a point

vertical

Pennant flag shape tapering to a point

horizontal

Pennant flag shape tapering to a point

both axes

Pennant flag shape tapering to a point

Installation

pnpm dlx shadcn@latest add https://cult-ui.com/r/svg-shapes-animated.json

Usage

Each export is a client component ("use client") that wraps stroked paths in motion elements. Animations use whileInView with pathLength from 0 → 1 so lines draw when the SVG enters the viewport. useReducedMotion() skips the animation and shows finished paths immediately.

import { GothicArchPanelSvg } from "@/components/ui/svg-shapes-animated" export function Hero() { return ( <div className="text-foreground/50 w-full max-w-4xl"> <GothicArchPanelSvg /> </div> ) }

Props

PropTypeDefault
classNamestring
flip"none" | "vertical" | "horizontal" | "both""none"

Requires the motion package (motion/react), declared as a registry dependency when installing via CLI.

Compared to SVG Shapes

  • Animated: scroll-draw strokes, slightly different default stroke emphasis, extra shapes (diamond, trapezoid, octagon, ribbon panels, wireframe naming *WireframeSvg, etc.).
  • Static (svg-shapes): no Motion dependency, passive SVGs suitable anywhere including server components.

Notes

  • Sacred-geometry and multi-path shapes stagger short delays per sub-path for a sequential draw feel.
  • Ensure the preview or page scrolls enough for elements to cross the in-view threshold; embed in a tall section or scroll container as needed.