StopMotion({
0: {"background":"rgb(100, 100, 100)", left: "0px"},
5: {"background":"rgb(255, 100, 100)", left: "300px"}
}, {
selector: ".circle",
count: 5,
}).play();
$ npm install scenejs-stopmotion
<script src="//daybrush.github.io/scenejs-stopmotion/release/latest/stopmotion.min.js">
import StopMotion from "scenejs-stopmotion";
scene.setStopMotion({count: 5});
scene.play();
name | type | description |
---|---|---|
target | Scene or SceneItem or object | The instance to apply stop-motion |
options | object | The options to apply to stop-motion |
- target is object, retrun value's type is SceneItem.
- count : Number of times to apply stop motion.