Skip to content

younkues/scenejs-stopmotion

Repository files navigation

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-stopmotion

Import 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 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.

options

  • count : Number of times to apply stop motion.

About

use StopMotion in Scene.js

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published