diff options
Diffstat (limited to '')
-rw-r--r-- | libraries/edje/src/examples/animations.edc | 93 |
1 files changed, 93 insertions, 0 deletions
diff --git a/libraries/edje/src/examples/animations.edc b/libraries/edje/src/examples/animations.edc new file mode 100644 index 0000000..f25296f --- /dev/null +++ b/libraries/edje/src/examples/animations.edc | |||
@@ -0,0 +1,93 @@ | |||
1 | collections { | ||
2 | group { | ||
3 | name: "animations_group"; | ||
4 | min: 100 80; | ||
5 | |||
6 | parts { | ||
7 | part { | ||
8 | name: "part_one"; | ||
9 | type: RECT; | ||
10 | scale: 1; | ||
11 | description { | ||
12 | min: 50 50; | ||
13 | state: "default" 0.0; | ||
14 | color: 0 0 0 255; /* black */ | ||
15 | rel1.relative: 0.0 0.0; | ||
16 | rel2.relative: 0.33 1.0; | ||
17 | } | ||
18 | description { | ||
19 | state: "invert" 1.0; | ||
20 | inherit: "default" 0.0; | ||
21 | rel1.relative: 0.0 0.0; | ||
22 | rel2.relative: 1.0 0.33; | ||
23 | } | ||
24 | } | ||
25 | |||
26 | part { | ||
27 | name: "part_two"; | ||
28 | type: RECT; | ||
29 | scale: 1; | ||
30 | description { | ||
31 | min: 50 50; | ||
32 | state: "default" 0.0; | ||
33 | color: 255 255 0 255; /* yellow */ | ||
34 | rel1.relative: 0.33 0.0; | ||
35 | rel2.relative: 0.66 1.0; | ||
36 | } | ||
37 | description { | ||
38 | state: "invert" 1.0; | ||
39 | inherit: "default" 0.0; | ||
40 | rel1.relative: 0.0 0.66; | ||
41 | rel2.relative: 1.0 1.0; | ||
42 | } | ||
43 | } | ||
44 | |||
45 | part { | ||
46 | name: "part_three"; | ||
47 | type: RECT; | ||
48 | description { | ||
49 | state: "default" 0.0; | ||
50 | color: 255 0 0 255; /* red */ | ||
51 | rel1.relative: 0.66 0.0; | ||
52 | rel2.relative: 1.0 1.0; | ||
53 | } | ||
54 | description { | ||
55 | state: "invert" 1.0; | ||
56 | inherit: "default" 0.0; | ||
57 | rel1.relative: 0.0 0.33; | ||
58 | rel2.relative: 1.0 0.66; | ||
59 | } | ||
60 | } | ||
61 | } | ||
62 | |||
63 | program { | ||
64 | signal: "load"; | ||
65 | source: ""; | ||
66 | in: 2.0 0.0; | ||
67 | after: "animation,state1"; | ||
68 | } | ||
69 | program { | ||
70 | name: "animation,state1"; | ||
71 | signal: "animation,start"; | ||
72 | source: ""; | ||
73 | in: 1.0 0.0; | ||
74 | action: STATE_SET "invert" 1.0; | ||
75 | target: "part_one"; | ||
76 | target: "part_two"; | ||
77 | target: "part_three"; | ||
78 | transition: LINEAR 0.6; | ||
79 | after: "animation,state2"; | ||
80 | } | ||
81 | program { | ||
82 | name: "animation,state2"; | ||
83 | signal: "animation,start"; | ||
84 | source: ""; | ||
85 | in: 1.0 0.0; | ||
86 | action: STATE_SET "default" 0.0; | ||
87 | target: "part_one"; | ||
88 | target: "part_two"; | ||
89 | target: "part_three"; | ||
90 | transition: LINEAR 0.6; | ||
91 | after: "animation,state1"; | ||
92 | } | ||
93 | } | ||