Ride Tracking

A phone map draws a route, the car drives it while the ETA falls, and an arrival check lands. A free, MIT-licensed Remotion product scene.

Installation
$ pnpm dlx shadcn@latest add @remocn/ride-tracking

Usage

tsx
// src/Root.tsx
import { Composition } from "remotion";
import { RideTracking } from "@/components/remocn/ride-tracking";
 
const RideTrackingScene = () => (
  <RideTracking
    eta={4}
    pickup="214 Linden St"
    lines={["Book it in one tap.", "Watch it come to you.", "Your ride is here."]}
  />
);
 
export const RemotionRoot = () => (
  <Composition
    id="RideTracking"
    component={RideTrackingScene}
    durationInFrames={540}
    fps={60}
    width={1280}
    height={720}
  />
);

A phone shows a map where the route draws, a trip card slides up with the driver and car, and the car follows the route while the ETA counts down from eta minutes. It ends on an arrival check. Pass driver (name, rating, car, plate), pickup and eta; lines are the three captions beside the phone. Ships light and dark.

The ground is a live gradients.sh shader (GshGround), installed with the component as @remocn/gsh. Pick another look with the ground preset prop.

Props16

PropTypeDefault
driver
RideDriverDEFAULT_DRIVER

Driver card: name, initials, rating, trips, car and plate

eta
number4

Starting ETA in minutes; counts down to arrival

pickup
string"214 Linden St"

Pickup street shown on the pin and in the sheet

arrivedTitle
string"Your driver has arrived"

Sheet title once the car reaches the pin.

drive
number162

Frames the car takes to drive the route to the pickup.

accent
string"#276EF1"

Accent color for highlights, buttons and progress

ink
string—

Text color of the lines beside the phone; overrides the theme ink.

fontFamily
string"Onest"

Typeface for the copy. Load the font in your project first.

scale
number1

Size of the foreground around the frame's center; the background stays put.

delay
number0

Frames to hold the first frame before anything moves.

speed
number1

Playback speed multiplier for the whole timeline

theme
"light" | "dark""light"

Light or dark palette

lines
[string, string, string]—

Three captions beside the phone: route, drive, arrival

ground
GshPresetId—

gradients.sh preset id for the backdrop shader

background
string—

Solid fill in place of the gradient ground; pass "transparent" to drop it.

groundParams
Partial<GradientParams>—

Overrides for the backdrop shader parameters

  • driverRideDriver

    Driver card: name, initials, rating, trips, car and plate

    DefaultDEFAULT_DRIVER

  • etanumber

    Starting ETA in minutes; counts down to arrival

    Default4

  • pickupstring

    Pickup street shown on the pin and in the sheet

    Default"214 Linden St"

  • arrivedTitlestring

    Sheet title once the car reaches the pin.

    Default"Your driver has arrived"

  • drivenumber

    Frames the car takes to drive the route to the pickup.

    Default162

  • accentstring

    Accent color for highlights, buttons and progress

    Default"#276EF1"

  • inkstring

    Text color of the lines beside the phone; overrides the theme ink.

  • fontFamilystring

    Typeface for the copy. Load the font in your project first.

    Default"Onest"

  • scalenumber

    Size of the foreground around the frame's center; the background stays put.

    Default1

  • delaynumber

    Frames to hold the first frame before anything moves.

    Default0

  • speednumber

    Playback speed multiplier for the whole timeline

    Default1

  • theme"light" | "dark"

    Light or dark palette

    Default"light"

  • lines[string, string, string]

    Three captions beside the phone: route, drive, arrival

  • groundGshPresetId

    gradients.sh preset id for the backdrop shader

  • backgroundstring

    Solid fill in place of the gradient ground; pass "transparent" to drop it.

  • groundParamsPartial<GradientParams>

    Overrides for the backdrop shader parameters