Capítulo 107 de 411
kill() stops the tween, with optional scoping to specific targets and/or properties instead of killing the whole thing.
| Parameter | Type | Default | Description |
|---|---|---|---|
target | Object | null | limit killing to this target (or array of targets); omit to affect all |
propertiesList | String | "all" | comma-delimited property names to stop animating |
tween.kill(); // kill everything
tween.kill(myObject, "opacity,x"); // only stop these properties on this target
kill(), Tween's version can target specific properties/targets within a multi-target tween — killing the rest of the tween's properties leaves it running.