App UI kits › Switchback › 3D trail map

3D trail map

Scrub the elevation profile and the walker moves along the 3D ridge in step; drag to turn the fells.

3D trail map is a screen from Switchback, an app ui kit with 10 screens: A hiking app with a 3D trail you scrub along, and a sunset check that keeps you off the hill in the dark. Price: $5 for the whole pack.

Built with: three.js terrain, scrub to walk, route progress.

Code: React and Next.js (TypeScript), Vue 3, plain HTML/CSS/JS, Tailwind CSS v4 and Motion (motion.dev). No npm packages needed. Keyboard accessible, with a reduced-motion version, in dark and light.

3D trail map props

PropTypeDefaultDescription
darkboolean
autoplayboolean
trailstring
onStart(trail: string) => void

Methods on the ref

Use it in React

import SwitchbackMap3d from './SwitchbackMap3d';

<SwitchbackMap3d />

The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.

More in Switchback

Good for: Hiking app UI.