mirror of
https://github.com/brl/mutter.git
synced 2024-12-25 04:22:05 +00:00
82ab00930b
Modified the "animation reuse" sample code to provide a simpler example to explain in the recipe. Also modified variable names to mirror the names used for the previous "complex animation" example and added some more comments, to further simplify and support the recipe.
43 lines
764 B
JSON
43 lines
764 B
JSON
[
|
|
{
|
|
"type" : "ClutterGroup",
|
|
"id" : "rig"
|
|
},
|
|
|
|
{
|
|
"type" : "ClutterAnimator",
|
|
"id" : "animator",
|
|
"duration" : 2000,
|
|
|
|
"properties" : [
|
|
{
|
|
"object" : "rig",
|
|
"name" : "x",
|
|
"ease-in" : true,
|
|
"keys" : [
|
|
[ 0.0, "linear", 0.0 ],
|
|
[ 1.0, "easeOutCubic", 150.0 ]
|
|
]
|
|
},
|
|
{
|
|
"object" : "rig",
|
|
"name" : "scale-x",
|
|
"ease-in" : true,
|
|
"keys" : [
|
|
[ 0.5, "linear", 1.0 ],
|
|
[ 1.0, "easeOutBack", 2.0 ]
|
|
]
|
|
},
|
|
{
|
|
"object" : "rig",
|
|
"name" : "scale-y",
|
|
"ease-in" : true,
|
|
"keys" : [
|
|
[ 0.5, "linear", 1.0 ],
|
|
[ 1.0, "easeOutBack", 2.0 ]
|
|
]
|
|
}
|
|
]
|
|
}
|
|
]
|