Capítulo 616 de 988
_Part of the @remotion/effects package.
const label: React.CSSProperties = {
alignItems: 'center',
backgroundColor: '#d7ff20',
borderRadius: 72,
color: '#111',
display: 'flex',
fontFamily: 'Arial Black, sans-serif',
fontSize: 120,
fontWeight: 900,
height: 560,
justifyContent: 'center',
lineHeight: 1,
textAlign: 'center',
textTransform: 'uppercase',
width: 900,
};
export const MyComp: React.FC = () => {
const frame = useCurrentFrame();
return (
<AbsoluteFill style={{alignItems: 'center', justifyContent: 'center'}}>
<HtmlInCanvas
width={1280}
height={720}
effects={[
shrinkwrap({
amount: 1,
displacement: 5,
highlightIntensity: 0.85,
wrinkleDensity: 0.48,
edgeTension: 0.58,
phase: frame * 0.05,
seed: 8,
}),
]}
>
<AbsoluteFill style={{alignItems: 'center', justifyContent: 'center'}}>
<div style={label}>Shrinkwrap</div>
</AbsoluteFill>
</HtmlInCanvas>
</AbsoluteFill>
);
};