# Add a keyframe

To add a keyframe, you need to make sure you are first in [Animate mode](/editor/animating/design-vs-animate-mode.md) using the toggle at the top centre of your editor. In animate mode, you can change the properties of your layer at each point in time to animate it.

### Auto-animate

Lottielab uses auto-animate by default when in animate mode.&#x20;

* Go to your timeline
* Drag the [playhead](/editor/animating/timeline/playhead-and-controls.md#playhead) at a point in time where there's no keyframes.
* Change any of the [properties](/editor/properties.md) on your layer to create a new keyframe at this point. E.g Size, Fill or Position.

This means that you only need to move your playhead to a point in time, then change any of the layer's properties at each point in time to create an animation.

<figure><img src="/files/6HUbJ3b1izXk0bxRBw0D" alt=""><figcaption></figcaption></figure>

### 'Add Keyframe' button

You can also add/set a keyframe at a point in time&#x20;

* Go to your timeline
* Drag the [playhead](/editor/animating/timeline/playhead-and-controls.md#playhead) at a point in time where there's no keyframes, you'll see the `+` button show up on the playhead once you do so.
* Click the `+` button.

This allows to also set a keyframe at that point without making any changes to the layer, but you're free to change the layer properties in these keyframes too if you wish.

Setting a keyframe is useful when trying to keep a layer's properties constant for a specific amount of time before animating it again.&#x20;

<figure><img src="/files/R40KGoauNt02LF42qZa0" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.lottielab.com/editor/animating/timeline/keyframes/add-a-keyframe.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
