lottie-spec-map.md
attributes
| source_url | https://github.com/diffusionstudio/lottie/blob/3c72912fad543897f90045ed4d355813837927fc/skills/text-to-lottie/references/lottie-spec-map.md |
|---|
Lottie Spec Map
Use this reference when authoring or debugging Lottie JSON structure. It is a
curated map of the upstream spec for this project, not a replacement for it.
Upstream specs:
Core Structure
- Top-level documents should include
v,fr,ip,op,w,h,nm,
assets, andlayers. ipis inclusive andopis exclusive.ip: 0,op: 90,fr: 60renders
frames0..89.- Prefer a meaningful top-level
nm; the player shows it as the canvas label. - Keep assets local to the scene folder and reference images by bare filename in
assets[].p.
Properties And Keyframes
- Static properties use
{ "a": 0, "k": value }. - Animated properties use
{ "a": 1, "k": [keyframes] }. - Keyframes must be sorted by ascending
t. - Non-hold interpolation should put
oon the start keyframe andion the
destination keyframe; the final keyframe does not need an outgoingo. - Scalar animated values use arrays in keyframes, for example
"s": [45]for
rotation or opacity. - Color values are RGB or RGBA floats in
0..1; opacity values are0..100. - Easing handle
xvalues are0..1;yvalues may exceed that range for
controlled overshoot. - A cubic-bezier
(x1,y1,x2,y2)splits across two keyframes: it is the
outgoing handle of the start keyframeo:{x:[x1],y:[y1]}and the
incoming handle of the end keyframei:{x:[x2],y:[y2]}. - Overshoot: prefer a short settle-back keyframe past the target; the compact
alternative is pushing the endi.yabove 1. Anticipation: push the start
o.ybelow 0.
Layers
- Shape layers use
ty: 4. - Image layers reference entries in
assets. - Layer visibility is
ip <= frame < op. - Parent transforms compose through
parentreferences. Avoid cycles. - Mattes, masks, precomps, and time remap are valid but more fragile; use them
only when simpler shape/layer structure will not produce the result.
Shapes
- Group related shapes with
ty: "gr"and put the group transform
ty: "tr"last in the group'sitarray. - Styles apply to shapes that precede them within the current scope. A shape
without an applicable fill or stroke will not render. - Shapes render in reverse stack order inside groups. Verify visually when layer
order matters. - Common primitive types:
- rectangle:
ty: "rc" - ellipse:
ty: "el" - path:
ty: "sh" - polystar:
ty: "sr" - fill:
ty: "fl" - stroke:
ty: "st" - trim path:
ty: "tm" - group transform:
ty: "tr"
- rectangle:
Slots
- Define reusable values in top-level
slots. - Reference a slot with
sidon a compatible property. - Slot type is inferred from the slot value. Keep slot values compatible with
every property that references thatsid. - If a property has a missing
sid, renderers may fall back to the inline value
or a type default. Do not rely on missing slots.
Asset And Renderer Notes
- Image asset dimensions should match the expected
wandhbounds when
possible. - SVG, masks, gradients, blend modes, and intersections can differ between
renderers. Verify in Skottie. - Avoid expressions or renderer-specific extensions unless the player explicitly
supports them.
Copyright (c) 2026 Diffusion Studio Inc. License files are attached. MIT
MIT notice
Copyright (c) 2026 Diffusion Studio Inc.
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Children
No children yet.
Like how this is organised?
Build your own Memory tree on knowen.md: notes, decisions and tasks in one connected markdown graph, shared with your team and your AI agents.