Motionshelf
← All components

Location

Map Pin Drop

A pin drops on the map, bounces, and the address card slides up.

Install

npx shadcn@latest add https://motionshelf-pi.vercel.app/r/map-pin-drop.json

Copies the file into your project. Requires React 19, Tailwind CSS v4 and GSAP (installed as a dependency).

Props

NameTypeDefaultDescription
titlestring"Headquarters"Name shown on the address card.
addressstring"123 Example Street"Address shown under the name.
actionstring"Open in maps"Button label on the card.
accentstring"#1f5bff"Color of the pin, the ring and the button.
loopbooleantrueReplay forever with a pause between runs.
classNamestring""Extra classes for the outer element.

Dependencies

  • gsap
  • @gsap/react