11# Propeties
22
3- ## Animated Property
3+ < h2 id = " property " > Animated Property</ h2 >
44
55Properties in Lottie can be animated.
66
77Their structure depends on whether it's animated or not:
88
9+ {schema_object: properties /property}
10+ <tr ><td >`k`</td >
11+ <td >`any` or `array` of {link:properties/base-keyframe:Keyframes}</td >
12+ <td >Value or Keyframes</td >
13+ <td >When it's not animated, `k` will contain the value directly. When animated, `k` will be an array of keyframes.</td >
14+ </tr >
915
10- | Attribute| Type| Description|
11- | ---------| ----| -----------|
12- | ` a ` | [ 0-1 ` int ` ] ( #booleans ) | Whether the property is animated. Note some old animations might not have this|
13- | ` k ` || Value or keyframes, this changes based on the value of ` a ` |
1416
1517If ` a ` is ` 0 ` , then ` k ` just has the value of the property.
1618
@@ -96,12 +98,6 @@ you can see a representation of its easing function.
9698Animatable {link: values /vector}.
9799
98100{schema_object: properties /vector-property}
99- <tr ><td >`a`</td ><td >{link:values/int-boolean}</td ><td >Animated</td ><td >Whether the property is animated</td ></tr >
100- <tr ><td >`k`</td >
101- <td >{link:values/vector} or `array`</td >
102- <td >Value or Keyframes</td >
103- <td >When it's not animated, `k` will contain the value directly. When animated, `k` will be an array of keyframes.</td >
104- </tr >
105101
106102<h4 id =" vector-keyframe " >Vector Keyframe</h4 >
107103
@@ -118,26 +114,12 @@ Note that when animated it uses {link:properties/vector-keyframe:Vector Keyframe
118114so instead of scalars keyframes have arrays with a single values.
119115
120116{schema_object: properties /scalar-property}
121- <tr ><td >`a`</td ><td >{link:values/int-boolean}</td ><td >Animated</td ><td >Whether the property is animated</td ></tr >
122- <tr ><td >`k`</td >
123- <td >`number` or `array`</td >
124- <td >Value or Keyframes</td >
125- <td >When it's not animated, `k` will contain the value directly. When animated, `k` will be an array of keyframes.</td >
126- </tr >
127-
128117
129118<h3 id =" position-property " >Position</h3 >
130119
131120Animatable 2D {link: values /vector} with optional spatial tangents.
132121
133122{schema_object: properties /position-property}
134- <tr ><td >`a`</td ><td >{link:values/int-boolean}</td ><td >Animated</td ><td >Whether the property is animated</td ></tr >
135- <tr ><td >`k`</td >
136- <td >{link:values/vector} or `array`</td >
137- <td >Value or Keyframes</td >
138- <td >When it's not animated, `k` will contain the value directly. When animated, `k` will be an array of keyframes.</td >
139- </tr >
140-
141123
142124<h4 id =" position-keyframe " >Position Keyframe</h4 >
143125
@@ -158,13 +140,6 @@ Animatable 2D {link:values/vector} with optional spatial tangents.
158140Animatable {link: values /bezier}.
159141
160142{schema_object: properties /bezier-property}
161- <tr ><td >`a`</td ><td >{link:values/int-boolean}</td ><td >Animated</td ><td >Whether the property is animated</td ></tr >
162- <tr ><td >`k`</td >
163- <td >{link:values/bezier} or `array`</td >
164- <td >Value or Keyframes</td >
165- <td >When it's not animated, `k` will contain the value directly. When animated, `k` will be an array of keyframes.</td >
166- </tr >
167-
168143
169144<h4 id =" bezier-keyframe " >Bezier Shape Keyframe</h4 >
170145
@@ -177,13 +152,6 @@ Animatable {link:values/bezier}.
177152Animatable {link: values /color}.
178153
179154{schema_object: properties /color-property}
180- <tr ><td >`a`</td ><td >{link:values/int-boolean}</td ><td >Animated</td ><td >Whether the property is animated</td ></tr >
181- <tr ><td >`k`</td >
182- <td >{link:values/color} or `array`</td >
183- <td >Value or Keyframes</td >
184- <td >When it's not animated, `k` will contain the value directly. When animated, `k` will be an array of keyframes.</td >
185- </tr >
186-
187155
188156<h4 id =" color-keyframe " >Color Keyframe</h4 >
189157
0 commit comments