2010-05-21 13:13:14 +00:00
|
|
|
[
|
|
|
|
{
|
|
|
|
"type" : "ClutterRectangle",
|
|
|
|
"id" : "rect",
|
|
|
|
"width" : 100,
|
|
|
|
"height" : 100
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type" : "ClutterState",
|
|
|
|
"id" : "state",
|
|
|
|
|
|
|
|
"transitions" : [
|
|
|
|
{
|
2010-05-21 13:22:56 +00:00
|
|
|
"source" : "base",
|
2010-05-21 13:13:14 +00:00
|
|
|
"target" : "clicked",
|
|
|
|
"duration" : 250,
|
|
|
|
|
|
|
|
"keys" : [
|
|
|
|
[ "rect", "opacity", "linear", 128 ]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"source" : "clicked",
|
2010-05-21 13:22:56 +00:00
|
|
|
"target" : "base",
|
2010-05-21 13:13:14 +00:00
|
|
|
"duration" : 150,
|
|
|
|
|
|
|
|
"keys" : [
|
|
|
|
[ "rect", "opacity", "linear", 255 ]
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|