Topo Lines
A flight over a map made of glowing contour lines: mountains rise out of a dark plain and fade into fog. The land lifts under the cursor and a click rolls a ring of light across it.
pixikit.com/docs/effects/topo-lines
Customize
Color
Line count22
Line width1.2
Major lines
Elevation1.00
Foreground0.20
Scale1.00
Detail0.35
Tilt32
Speed0.25
Direction
Morph0.20
Glow0.60
Depth of field0.40
Fog0.35
Brightness1.00
Opacity1.00
Mouse interaction
Hover effect
Mouse radius1.00
Mouse strength0.60
Trail0.30
Parallax0.50
Click effect
Markers
Glitch0.00
Intro
Light mode
Props
31| Name | Type | Default | Description |
|---|---|---|---|
color | string | "#4f7cff" | Color of the contour lines. The brightest lines glow toward white. |
lineCount | number | 22 | How many contour lines stack up the tallest mountain. |
lineWidth | number | 1.2 | Width of the lines in px. Nearer lines draw a little thicker. |
majorLines | boolean | true | Draws every fifth line bolder and brighter, like the index lines on a map. |
elevation | number | 1 | How tall the mountains rise. 0 lays the map flat. |
foreground | number | 0.2 | How much height the land keeps as it reaches the camera. Low values settle it flat so the view stays clear. |
scale | number | 1 | Size of the landforms. Larger values give broader mountains. |
detail | number | 0.35 | Fine wobble in the lines and small rings on the plains, from 0 to 1. |
tilt | number | 32 | Camera angle in degrees, from a low view across the land to 90 for straight down. |
speed | number | 0.25 | How fast the camera glides over the land. |
direction | "forward" | "backward" | "left" | "right" | "forward" | Which way the camera travels. |
morph | number | 0.2 | How quickly the landforms reshape over time. 0 keeps the terrain still. |
glow | number | 0.6 | Soft bloom around the lit lines. |
depthOfField | number | 0.4 | Softens lines away from the focus point, which follows the cursor. |
fog | number | 0.35 | How quickly the land fades into the distance. 1 leaves only the foreground. |
brightness | number | 1 | Overall brightness of the lines. |
opacity | number | 1 | Overall opacity of the effect. |
mouseInteraction | boolean | true | Lets the cursor light and shape the terrain, and tilts the camera toward it. |
hoverEffect | "lift" | "trace" | "light" | "lift" | Lift raises the land under the cursor, trace lights the contour at its height, light only lights it. |
mouseRadius | number | 1 | Size of the area the cursor affects. |
mouseStrength | number | 0.6 | How high the land lifts and how brightly it lights. |
trail | number | 0.3 | How long the lifted land takes to settle back, from 0 to 1. |
parallax | number | 0.5 | How far the camera leans toward the cursor, from 0 to 1. |
clickEffect | "pulse" | "peak" | "none" | "pulse" | Pulse sends a ring of light rolling out over the land, peak raises a new mountain. |
markers | "none" | "plus" | "dots" | "none" | Survey markers on a grid across the land. A few blink, and the ones near the cursor get a target frame. |
glitch | number | 0 | How often brief data glitches slice through the lines, from 0 to 1. Clicks set one off too. |
intro | boolean | true | The map fades in flat and rises into mountains on mount. |
lightMode | boolean | false | Draws the lines as crisp ink for light backgrounds. |
dpr | number | None | Maximum device pixel ratio, capped at 2. |
className | string | None | |
style | CSSProperties | None |