--- name: text-highlights description: Animated text highlights and hand-drawn annotations using @remotion/rough-notation. metadata: tags: text, highlights, annotations, circles, rough-notation --- # Text highlights Use `@remotion/rough-notation` to draw animated annotations around or behind text. It supports highlights, circles, underlines, strike-throughs, crossed-off text, boxes, and brackets. Docs: https://www.remotion.dev/docs/text-highlights Install the package using the same Remotion version as the project: ```bash bunx remotion add @remotion/rough-notation ``` Choose the component that describes the annotation: ``, ``, ``, ``, ``, ``, or ``. The component determines both the annotation style and whether it renders behind or on top of the text. Drive `progress` from `useCurrentFrame()` so the annotation is deterministic and synchronized with the video: ```tsx import {Circle, Highlight} from '@remotion/rough-notation'; import {interpolate, useCurrentFrame} from 'remotion'; export const TextAnnotations: React.FC = () => { const frame = useCurrentFrame(); return (
This is{' '} important , and this is{' '} connected .
); }; ``` Keep `progress` inline, hardcoded and use `interpolate` for maximum [Studio interactivity](../remotion-interactivity/SKILL.md).