# Mojs Player (opens new window)

npm (opens new window)

GUI player to control your animations

# Usage

  • Install it: npm i @mojs/player
  • Import it: import MojsPlayer from '@mojs/player'; or
    var MojsPlayer = require('mojs-player');
  • Use it:
    1. Create a tween or a timeline
    2. Create a player and mass the tween/timeline as the add option:
      const mojsPlayer = new MojsPlayer({ add: mainTimeline });


For shotcuts and more options, read more here (opens new window)