Capítulo 629 de 988

Chapter 629: waves()

Core Idea

_Part of the @remotion/effects package.

Key Concepts

  • Preview
  • Example
  • API
  • colors?
  • direction?
  • thickness?
  • gap?
  • angle?

Code Examples

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

  return (
    <AbsoluteFill>
      <Solid
        width={1280}
        height={720}
        effects={[
          waves({
            colors: ['#dff4ff', '#7cc6ff'],
            direction: 'horizontal',
            thickness: 40,
            gap: 0,
            angle: 0,
            offset: frame * 2,
            amplitude: 24,
            wavelength: 160,
            phase: frame * 2,
          }),
        ]}
      />
    </AbsoluteFill>
  );
};
  • What it demonstrates: Usage pattern for waves() from the official docs.

Key Takeaways

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

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.