summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsubhransu mohanty <sub.mohanty@samsung.com>2017-12-13 18:58:47 +0900
committersubhransu mohanty <sub.mohanty@samsung.com>2018-04-12 13:51:51 +0900
commit322da5c1f1595762f4dedf5564492933e33a5e0d (patch)
tree18ee7f29239bdfb4953a3469b76e790af253bf6b
parent584d0c64904201d1a463fc2d020ca928d8e6dd57 (diff)
lottie: added some sample lottie file and its format description
-rwxr-xr-xssg/src/lottie/sample/emptylayer.json48
-rwxr-xr-xssg/src/lottie/sample/layerwithrect.json54
-rwxr-xr-xssg/src/lottie/sample/withanimation.json28
3 files changed, 130 insertions, 0 deletions
diff --git a/ssg/src/lottie/sample/emptylayer.json b/ssg/src/lottie/sample/emptylayer.json
new file mode 100755
index 0000000000..f2a90a172f
--- /dev/null
+++ b/ssg/src/lottie/sample/emptylayer.json
@@ -0,0 +1,48 @@
1/* Empty Layer Json file */
2
3{ /* Composition */
4 "v":"5.0.5", /*version*/
5 "fr":29.9700012207031, /*frame Rate*/
6 "ip":0, /*start frame */
7 "op":1.00000004073083, /*end frame */
8 "w":100, /* width of composition */
9 "h":100, /* height of composition */
10 "nm":"EmptyLayer", /* name */
11 "ddd":0, /* 3d stuff */
12 "assets":[], /* external file like image or font or other composition file */
13
14 "layers":[
15 {
16 "ddd":0,
17 "ind":1, /*layer id */
18 "ty":4, /* layer type 4 is for shape layer */
19 "nm":"Shape Layer 1", /*name*/
20 "sr":1, /* time streatch */
21 "ks":{ /*Layer transform matrix*/
22
23 "o":{ /* opacity its a single value property the format when no animation is specified*/
24 "a":0, /* Does this property has animation */
25 "k":100, /* property value */
26 "ix":11 /* property index */
27 },
28 "r":{"a":0,"k":0,"ix":10}, /*rotation*/
29
30 "p":{ /*position , its a multidimensional property(x,y,z).*/
31 "a":0, /* no animation */
32 "k":[50,50,0], /* array of property value */
33 "ix":2 /* property index ?? is it Unique ??*/
34 },
35 "a":{"a":0,"k":[0,0,0],"ix":1}, /*anchor point / origin */
36 "s":{"a":0,"k":[100,100,100],"ix":6} /* scale */
37 },
38 "ao":0,
39 "shapes":[], /*Shape list*/
40 "ip":0, /* start frame */
41 "op":1.00000004073083, /* end frame */
42 "st":0, /* start time */
43 "bm":0 /*blend mode 0 for normal*/
44 }
45 ],
46
47 "markers":[]
48} \ No newline at end of file
diff --git a/ssg/src/lottie/sample/layerwithrect.json b/ssg/src/lottie/sample/layerwithrect.json
new file mode 100755
index 0000000000..d40696a6e8
--- /dev/null
+++ b/ssg/src/lottie/sample/layerwithrect.json
@@ -0,0 +1,54 @@
1/* shape layer with a single rect and single fill */
2{
3 "v":"5.0.5",
4 "fr":60,
5 "ip":0,
6 "op":1,
7 "w":100,
8 "h":100,
9 "nm":"LayerWithRect",
10 "ddd":0,
11 "assets":[],
12 "layers":[
13 { /* layer 1 */
14 "ddd":0,
15 "ind":1,
16 "ty":4,
17 "nm":"Shape Layer 1",
18 "sr":1,
19 "ks":{
20 "o":{"a":0,"k":100,"ix":11},
21 "r":{"a":0,"k":0,"ix":10},
22 "p":{"a":0,"k":[50,50,0],"ix":2},
23 "a":{"a":0,"k":[0,0,0],"ix":1},
24 "s":{"a":0,"k":[100,100,100],"ix":6}
25 },
26 "ao":0,
27 "shapes":[
28 { /* shape 1, the rect path */
29 "ty":"rc", /* shape type rounded corner maybe ? draws a rect */
30 "d":1,
31 "s":{"a":0,"k":[100,100],"ix":2}, /* size of rect */
32 "p":{"a":0,"k":[0,0],"ix":3}, /* position of rect */
33 "r":{"a":0,"k":0,"ix":4}, /* rounded corner of rect */
34 "nm":"Rectangle Path 1",
35 "mn":"ADBE Vector Shape - Rect","hd":false
36 },
37 { /*shape 2 , the solid fill object*/
38 "ty":"fl", /* solid fill type */
39 "c":{"a":0,"k":[1,0,0,1],"ix":4}, /* color */
40 "o":{"a":0,"k":100,"ix":5}, /* opacity */
41 "r":1, /* ?? NEED TO FIND OUT */
42 "nm":"Fill 1", /* name */
43 "mn":"ADBE Vector Graphic - Fill", /* name */
44 "hd":false
45 }
46 ],
47 "ip":0,
48 "op":1,
49 "st":0,
50 "bm":0
51 }
52 ],
53 "markers":[]
54} \ No newline at end of file
diff --git a/ssg/src/lottie/sample/withanimation.json b/ssg/src/lottie/sample/withanimation.json
new file mode 100755
index 0000000000..13749c9176
--- /dev/null
+++ b/ssg/src/lottie/sample/withanimation.json
@@ -0,0 +1,28 @@
1/* this sample animates the rounded corner of a rectangle frm 21 to 5 in 10 frames */
2{
3 "v":"5.0.5","fr":60,"ip":0,"op":30,"w":100,"h":100,"nm":"withanimation",
4 "ddd":0,"assets":[],
5 "layers":[{"ddd":0,"ind":1,"ty":4,"nm":"Shape Layer 1","sr":1,
6 "ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[50,50,0],"ix":2},
7 "a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,
8 "shapes":[
9 {
10 "ty":"rc","d":1,
11 "s":{"a":0,"k":[100,100],"ix":2},
12 "p":{"a":0,"k":[0,0],"ix":3},
13 "r":{
14 "a":1,
15 "k":[
16 {"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"n":["0p833_0p833_0p167_0p167"],"t":0,"s":[21],"e":[5]},
17 {"t":10}
18 ],"ix":4
19 },
20 "nm":"Rectangle Path 1",
21 "mn":"ADBE Vector Shape - Rect","hd":false
22 },
23 {
24 "ty":"fl","c":{"a":0,"k":[1,0,0,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false
25 }
26 ],
27 "ip":0,"op":30,"st":0,"bm":0}],"markers":[]
28} \ No newline at end of file