Panorama

No dependencies
Code format

Install with shadcn

Needs a free account token. Get a token

npx shadcn@latest add @movin/card-panorama

About this component

A summit card holding a full 360 degree panorama: it turns slowly on its own, and you can grab it and drag to look around, with momentum, the view wrapping forever while the bearing and compass strip under it follow where you are facing.

Dependencies
None
Difficulty
Intermediate
Reduced motion
Respected
Theme
Light and dark
Follows page color-scheme

Triggers3

  • Mouse tracking
  • Continuous
  • Card

Techniques4

  • requestAnimationFrame
  • Event position
  • CSS variables
  • SVG

Accessibility

Keyboard and screen readers

The view is a focusable slider (role="slider") whose value is the bearing in degrees with its compass point; the arrow keys turn it.

Reduced motion

It does not drift and stops when you let go.

Use it in anything you build, commercial and client work included. Licence

More cards

See all
Order #2291
  • Ceramic mug × 2
  • Linen tea towel
3 items · 1.2 kg
ParcelGet code
LIVE

Orkney switches on Europe's largest tidal array

Energy desk12 min ago
PerimeterGet code

Invoice 004212 Nov

Fern & Field Studio

Brand identity£800.00
Motion guide£340.00
Print proofs£100.00
Total£1,240.00
Original
PhotocopyGet code
Toolbox12 motion skills
  • Easing
  • Timing
  • Squash
  • Stagger
  • Springs
  • Paths
  • Masks
  • Loops
  • Physics
  • Morph
  • Parallax
  • Arcs
PileGet code