RemotionUI

Marker Highlight

Highlighter-pen-style wipe animation behind the target word.

PrimitivePrimitives

marker-highlight30fps · 960×540
Install
$ npx remotion-ui@latest add marker-highlight

Finds highlightWord in text and animates a highlighter-pen-style wipe behind it using spring(). Use markerColor and invertOnHighlight for highlighter-style emphasis.

Agent notes

Install first, then import the copied source component locally. AI guide →

Import
@/remotion/primitives/marker-highlight
  • Use when: frame-level motion primitives and reusable animation wrappers.
  • Customize: text, highlightWord, markerColor, invertOnHighlight, plus copied source for timing, layout, colors, and typography.
  • Rule: do not import this component from the remotion-ui npm package; it is copied into your project.

Usage

Example
import { MarkerHighlight } from "@/remotion/primitives/marker-highlight"; <MarkerHighlight text="Ship faster with RemotionUI" highlightWord="RemotionUI" markerColor="#f97316" invertOnHighlight />

API Reference

PropTypeDescription
text*stringFull sentence to render.
highlightWord*stringSubstring to highlight with an animated wipe.
markerColorstringFill color for the marker wipe.
invertOnHighlightbooleanSwitch highlighted word to dark text once the marker covers it.
durationInFramesnumberHighlight wipe duration in frames.
delayInFramesnumberFrames to delay before the wipe begins.
colorstringBase text color.
fontSizenumberText size in pixels.
fontWeightnumberText weight.

Related