Skip to content

FadeIn & FadeOut

FadeInFadeOut
0.00s / 3.97s · F0

Animates children from opacity: 0 to opacity: 1 over the given duration.

PropTypeDescription
durationnumberLength of the animation in frames
childrenReactNodeElements to fade in
<FadeIn duration={30}>
<Circle cx={200} cy={150} r={60} fill="#4f9eff" />
</FadeIn>

Animates children from opacity: 1 to opacity: 0 over the given duration.

PropTypeDescription
durationnumberLength of the animation in frames
childrenReactNodeElements to fade out
<FadeOut duration={30}>
<Circle cx={200} cy={150} r={60} fill="#ff6b6b" />
</FadeOut>
import { Player, FadeIn, FadeOut, Sequence, Circle, Text } from '@elucim/core';
<Player width={500} height={250} fps={30} durationInFrames={90}>
<FadeIn duration={30}>
<Circle cx={125} cy={125} r={50} stroke="#6c5ce7" strokeWidth={3} fill="rgba(108,92,231,0.2)" />
</FadeIn>
<Sequence from={60} durationInFrames={30}>
<FadeOut duration={30}>
<Circle cx={375} cy={125} r={50} stroke="#ff6b6b" strokeWidth={3} fill="rgba(255,107,107,0.2)" />
</FadeOut>
</Sequence>
</Player>