Skip to content

Production-ready animations, transitions, backgrounds, and scenes for Remotion

2.6 KB
Raw Blame
---
title: Light Trail Write
description: "A point of light writes a script wordmark along a path, leaving a cooling trail that becomes the logo."
component: light-trail-write
vibe: premium
length: 122
useWhen:
  - "A logo reveal that should feel hand-written with light."
  - "A signature-style sting for a creator or studio."
  - "A dark, premium opener where the logo is traced in one stroke."
avoidWhen:
  - "The wordmark is traced as a heat gradient instead — use `heat-trace`."
  - "You want a single broad streak that lights the name — use `light-signature`."
  - "A cinematic lens flare is wanted — use `anamorphic-flare`."
askedAs:
  - "handwritten logo with light"
  - "signature written by glowing pen"
  - "I want a glowing dot to draw our script logo like a sparkler"
  - "light painting cursive name reveal"
  - "creator brand sting where the signature is drawn in a fading light trail"
  - "calligraphy logo draw-on with glow"
---

<ComponentPreview name="light-trail-write" />

<InstallBlock name="light-trail-write" />

## Usage

```tsx
// src/Root.tsx
import { Composition } from "remotion";
import { LightTrailWrite } from "@/components/remocn/light-trail-write";

const LightTrailWriteScene = () => (
  <LightTrailWrite
    finish="accent"
    accent="#3B5BFD"
    speed={1}
  />
);

export const RemotionRoot = () => (
  <Composition
    id="LightTrailWrite"
    component={LightTrailWriteScene}
    durationInFrames={160}
    fps={30}
    width={1280}
    height={720}
  />
);
```

A point of light writes the path stroke by stroke, leaving a trail that cools behind it, then a sweep turns the script into the lit logo. Pass your own single-stroke SVG `path` and choose `finish`. This component renders on its own dark ground and has no theme prop.

<PropsTable title="Props"
  rows={[
    {
      name: "path",
      type: "string",
      default: "DEFAULT_PATH",
      description: "Single monoline SVG path to write; defaults to a script remocn.",
    },
    {
      name: "strokeWidth",
      type: "number",
      description: "Stroke width in path units; defaults to 3.4% of the path height.",
    },
    {
      name: "finish",
      type: "\"solid\" | \"accent\"",
      default: "\"solid\"",
      description: "Final look: lit white with a sheen, or lit in the accent.",
    },
    {
      name: "accent",
      type: "string",
      default: "\"#3B5BFD\"",
      description: "Accent colour for the mark and highlights; any CSS colour.",
    },
    {
      name: "speed",
      type: "number",
      default: "1",
      description: "Playback multiplier for the whole timeline; 1 is normal speed.",
    },
  ]}
/>