> ## Documentation Index
> Fetch the complete documentation index at: https://captions.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Animations

> Animate a layer with keyframes, a prompt, or custom animation code.

Animations live on the layer you select. You can keyframe a property, describe the motion in a prompt, or write a custom animation.

## Keyframes

Select the layer, then set a property (position, scale, rotation, opacity, or an effect) at one frame. Move the playhead and set the property again. Captions interpolates between those keys.

Text has its own animator. It changes characters, words, or lines inside one text layer, using animator properties and selectors. See [Text](https://captions.ai/help/web/timeline/text.md).

## Prompt

With the layer selected, ask [AI chat](https://captions.ai/help/web/ai-chat.md) for the motion. Name the layer and the time range.

Example: "From 9 to 13 seconds, stretch two arrows in from opposite sides, then pull them back out."

## Custom code

For a motion the presets do not cover, add a custom animation on the layer and edit its code. Use that when you need a specific path, loop, or easing. Preview the layer, then adjust the code and the layer's in and out points on the timeline.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.