Skip to main content

<StrikeThrough>v4.0.490

Draws an animated hand-drawn line through the text or element it wraps.

Example​

MyComp.tsx
import {StrikeThrough} from '@remotion/rough-notation'; export const MyComp: React.FC = () => { return ( <StrikeThrough progress={1} color="#f11515" strokeWidth={14}> forbidden </StrikeThrough> ); };

API​

strokeWidth?​

The stroke width in pixels. Default: 20.

iterations?​

The number of rough strokes to draw. Default: 1.

rtl?​

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

Also accepts the common annotation props.

Compatibility​

BrowsersEnvironments
Chrome
Firefox
Safari

See also​