0.2.0 • Published 8 years ago
scenejs-stopmotion v0.2.0
scenejs-stopmotion
Usage
StopMotion({
0: {"background":"rgb(100, 100, 100)", left: "0px"},
5: {"background":"rgb(255, 100, 100)", left: "300px"}
}, {
selector: ".circle",
count: 5,
}).play();Example
How To Use
Installation with npm
$ npm install scenejs-stopmotionImport Library
ES5
<script src="//daybrush.github.io/scenejs-stopmotion/release/latest/stopmotion.min.js">ES6
import StopMotion from "scenejs-stopmotion";Go
scene.setStopMotion({count: 5});
scene.play();API
| name | type | description |
|---|---|---|
| target | Scene or SceneItem | The instance to apply stop-motion |
| options | object | The options to apply to stop-motion |
options
- count : Number of times to apply stop motion.