<AnnotationBehind>v4.0.489
Draws a rough annotation behind the element it wraps.
Use it for highlights, circles, boxes, brackets, underlines, strike-throughs and crossed-off marks.
Example
MyComp.tsximport {AnnotationBehind } from '@remotion/rough-notation'; import {AbsoluteFill ,spring ,useCurrentFrame ,useVideoConfig } from 'remotion'; export constMyComp :React .FC = () => { constframe =useCurrentFrame (); const {fps } =useVideoConfig (); constprogress =spring ({fps ,frame ,durationInFrames : 45}); return ( <AbsoluteFill style ={{justifyContent : 'center',alignItems : 'center'}}> <div style ={{fontSize : 96}}> This is{' '} <AnnotationBehind progress ={progress }type ="highlight"color ="yellow"iterations ={8} > important </AnnotationBehind > </div > </AbsoluteFill > ); };
API
children
The element or text to track.
progress
Controls the annotation drawing progress from 0 to 1.
seed?
Controls the random roughness. Default: 1.
roughOptions?
Overrides options passed to roughjs.
Annotation options
Pass one of the options described in annotationConfig.
<AnnotationBehind> is an interactive component in Remotion Studio and also accepts the following <Sequence> props: durationInFrames, from, trimBefore, freeze, hidden, name and showInTimeline.
Compatibility
| Browsers | Environments | |||||
|---|---|---|---|---|---|---|
Chrome | Firefox | Safari | ||||