Coder Social home page Coder Social logo

jmconde / bm-player Goto Github PK

View Code? Open in Web Editor NEW
5.0 2.0 2.0 3.38 MB

A player for lottie-web's after effects plugin animations

License: MIT License

JavaScript 72.35% HTML 26.84% CSS 0.81%
animations after-effects lottie-web bodymovin javascript es6 rollup-js player

bm-player's Introduction

BODYMOVIN PLAYER v0.1.2

This project allows to chain After Effects lottie-web (bodymovin) plugin animations like a movie's storyboard.

Install module

npm i bm-player --save

Demo

See index.html in dist/demo directory.

Documentation

import BMPlayer from 'bm-player';
-or-
var BMPlayer = require('bm-player');
-or-
window.BMPlayer
new BMPlayer(<options>);

Player Options

/**
@param {Array}    scenes    required
@param {String}   container      required
@param {Boolean|Number}  autoplay   default: false if number set it is a delay in seconds
@param {Boolean|Number}  loop
@param {Player}   chain
**/

Scene Options

/**
@param {String}   id        required
@param {String}   path      required
@param {Boolean|Number}  loop
@param {Number}   duration
@param {Boolean}  reverse
@param {Number}   speed
**/

Public Methods

  • play(undefined | index | id)
  • stop()
  • pause()
  • next()

Events

  • start
  • complete
  • scene
  • sceneComplete
  • loopComplete

Contributing

git clone git@github.com:jmconde/bm-player.git

npm i -g rollup

npm i -g browser-sync

npm install

Make your changes and create a pull request! =)

bm-player's People

Contributors

jmconde avatar mminguezz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.