Depth in the details
Icy gradients, translucent rings, and a floating glass surface recreate the reference’s layered composition.
Component 009Cards
A little depth for your next adventure. A luminous glass card follows your pointer while floating rings and layered surfaces move in perspective.
Quick start
Save trailhead-card.tsx in your components folder, then import it below. Use it in a Next.js project with Tailwind CSS.
import TrailheadCard from "@/components/ui/trailhead-card";
export default function Example() {
return <TrailheadCard />;
}Behind the interaction
Icy gradients, translucent rings, and a floating glass surface recreate the reference’s layered composition.
Pointer movement tilts the card in three dimensions, with touch and keyboard controls and reduced-motion support.
Customize the card and connect its actions, or use the included local demo. The artwork is drawn in CSS and SVG.
Keep exploring
Move your pointer or touch the card to explore its layers. With the card focused, use arrow keys to tilt, and Home or Escape to reset.
Offline maps, elevation profiles, and turn-by-turn routing for every trail you run, ride, or hike.