sb.animationDestroy
sb.animationDestroy(id)
Destroy the animation associated with id.
Parameters
| Parameter | Type | Description |
|---|---|---|
id | string | The animation to destroy. |
Example
function create_animation(context) {
var data = {};
// slide the x position 400 pixels over 2000 ms
id = sb.animationCreate(60);
data.rate = "linear";
data.duration = 2000;
data.offset = 0;
data.delta = 400;
data.key = "mylayer.mycontrol.grd_x";
sb.animationAddStep(id, data);
// destroy it
sb.animationDestroy(id)
}