Capítulo 625 de 988

Chapter 625: venetianBlinds()

Core Idea

_Part of the @remotion/effects package.

Key Concepts

  • Preview
  • Example
  • API
  • progress?
  • direction?
  • slats?
  • disabled?
  • Requirements

Code Examples

export const MyComp: React.FC = () => {
  const frame = useCurrentFrame();
  const progress = interpolate(frame, [0, 45], [0, 1], {
    extrapolateLeft: 'clamp',
    extrapolateRight: 'clamp',
  });

  return (
    <AbsoluteFill>
      <Video
        src="https://remotion.media/video.mp4"
        effects={[
          venetianBlinds({
            progress,
            direction: 'vertical',
            slats: 14,
          }),
        ]}
      />
    </AbsoluteFill>
  );
};
  • What it demonstrates: Usage pattern for venetianBlinds() from the official docs.

Key Takeaways

  1. Understand preview when working with venetianBlinds().
  2. Understand example when working with venetianBlinds().
  3. Understand api when working with venetianBlinds().
  4. Understand progress? when working with venetianBlinds().
  5. Understand direction? when working with venetianBlinds().

Connects To

  • Animated Emoji: related page in the Effects Library section.
  • get Available Emoji: related page in the Effects Library section.
  • api: related page in the Effects Library section.