Back to Remotion

Crossed Off

packages/docs/docs/rough-notation/crossed-off.mdx

4.0.4981.1 KB
Original Source

<CrossedOff><AvailableFrom v="4.0.490" />

Draws two animated crossing strokes over the text or element it wraps.

Example

<Demo type="rough-notation-crossed-off" />
tsx
import {CrossedOff} from '@remotion/rough-notation';

export const MyComp: React.FC = () => {
  return (
    <CrossedOff
      progress={1}
      color="#eb2525"
      strokeWidth={6}
      iterations={10}
      roughness={2}
    >
      remove
    </CrossedOff>
  );
};

API

strokeWidth?

The stroke width in pixels. Default: 20.

iterations?

The number of rough strokes to draw for each diagonal. Default: 1.

rtl?

Draws the strokes right-to-left. Default: false.

Also accepts the common annotation props.

Compatibility

<CompatibilityTable chrome firefox safari nodejs="" bun="" serverlessFunctions="" clientSideRendering serverSideRendering player studio hideServers />

See also