Skip to content

Commit

Permalink
Minor keyframe clarifications
Browse files Browse the repository at this point in the history
Must be in ascending frame order
First/last keyframe values are held to start/end
of the animation.
  • Loading branch information
b-wils committed Jul 8, 2024
1 parent 19c8736 commit 3166633
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/specs/properties.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,13 @@ Their structure depends on whether it's animated or not:

{schema_object:properties/base-keyframe}

Keyframe arrays MUST be stored in order of ascending frame number.

If `h` is present and it's 1, you don't need `i` and `o`, as the property will keep the same value
until the next keyframe.

If the first keyframe occurs after the start of the animation, the initial property value will be from the first keyframe. Similarly if the last keyframe is before the end of the animation, the last keyframe value will be held until the end.

<h3 id="easing-handle">Keyframe Easing</h3>

Keyframe easing handles are objects with `x` and `y` attributes, which are numbers within 0 and 1.
Expand Down

0 comments on commit 3166633

Please sign in to comment.