mirror of
https://github.com/brl/mutter.git
synced 2024-12-26 12:52:14 +00:00
9fcbb274e0
Use named states, like in a real case.
34 lines
542 B
JSON
34 lines
542 B
JSON
[
|
|
{
|
|
"type" : "ClutterRectangle",
|
|
"id" : "rect",
|
|
"width" : 100,
|
|
"height" : 100
|
|
},
|
|
{
|
|
"type" : "ClutterState",
|
|
"id" : "state",
|
|
|
|
"transitions" : [
|
|
{
|
|
"source" : "base",
|
|
"target" : "clicked",
|
|
"duration" : 250,
|
|
|
|
"keys" : [
|
|
[ "rect", "opacity", "linear", 128 ]
|
|
]
|
|
},
|
|
{
|
|
"source" : "clicked",
|
|
"target" : "base",
|
|
"duration" : 150,
|
|
|
|
"keys" : [
|
|
[ "rect", "opacity", "linear", 255 ]
|
|
]
|
|
}
|
|
]
|
|
}
|
|
]
|