Capítulo 628 de 988

Chapter 628: wave()

Core Idea

_Part of the @remotion/effects package.

Key Concepts

  • Preview
  • Example
  • API
  • phase?
  • direction?
  • amplitude?
  • wavelength?
  • disabled?

Code Examples

export const MyComp: React.FC = () => {
  const frame = useCurrentFrame();

  return (
    <AbsoluteFill>
      <Video
        src="https://remotion.media/video.mp4"
        effects={[
          wave({
            phase: frame * 0.2,
            amplitude: 22,
            wavelength: 180,
          }),
        ]}
      />
    </AbsoluteFill>
  );
};
  • What it demonstrates: Usage pattern for wave() from the official docs.

Key Takeaways

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

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.