remotion-animate-text
TypeScript icon, indicating that this package has built-in type declarations

1.1.0 • Public • Published

remotion-animate-text

It is a Remotion package to animate the text. It animates the text either by charecters or by words on top of multiple css properties. It follows same pattern of interpolate function by native Remotion.

Demo

Install

npm i remotion-animate-text

Usage

import { AnimatedText } from "remotion-animate-text";
import { AbsoluteFill } from "remotion";

export const Example: React.FC = () => {
  const animation = {
    delimiter: "",
    opacity: [0, 1],
    x: [1, 0],
    y: [1, 0],
    scale: [0, 1],
    rotate: [45, 0],
    hideLoading: false,
    refRange: [0, 100], // can be any length and all other properties should also be of same length
    durations: [40, 50] // using this you can control for how long each part should animate in frames
  };

  return (
    <AbsoluteFill>
      <AnimatedText duration={60} animation={animation}>
        Hello world
      </AnimatedText>
    </AbsoluteFill>
  );
};

License

See the LICENSE.md file for the license of this repo.
To use Remotion, a company license is needed for some entities. Read the terms here.

Package Sidebar

Install

npm i remotion-animate-text

Weekly Downloads

25

Version

1.1.0

License

none

Unpacked Size

446 kB

Total Files

15

Last publish

Collaborators

  • pskd73