Capítulo 591 de 988

Chapter 591: lightTrail()

Core Idea

_Part of the @remotion/effects package.

Key Concepts

  • Preview
  • Example
  • API
  • direction?
  • distance?
  • intensity?
  • decay?
  • threshold?

Code Examples

export const MyComp: React.FC = () => {
  return (
    <AbsoluteFill>
      <CanvasImage
        src={staticFile('logo.png')}
        width={1280}
        height={720}
        fit="contain"
        effects={[
          lightTrail({
            direction: 180,
            distance: 120,
            intensity: 1.6,
            decay: 0.9,
            threshold: 0.2,
            color: '#ffb000',
          }),
        ]}
      />
    </AbsoluteFill>
  );
};
  • What it demonstrates: Usage pattern for lightTrail() from the official docs.

Key Takeaways

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

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.