All Projects → mojs → Mojs Player

mojs / Mojs Player

Licence: mit
GUI player to control your animations

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Mojs Player

Mojs Timeline Editor
GUI for interactive `html`/`custom points`/`timeline` editing while crafting your animations
Stars: ✭ 215 (-11.52%)
Mutual labels:  tool, gui, timeline
VideoTimelineView
Video timeline UI for iOS Apps
Stars: ✭ 103 (-57.61%)
Mutual labels:  player, timeline
Spirit
🙌 Play Spirit animations on the web
Stars: ✭ 719 (+195.88%)
Mutual labels:  player, tool
Ptdesigner
Library and GUI tool for designing and generation of procedural textures, made as a part of my Bachelor thesis.
Stars: ✭ 77 (-68.31%)
Mutual labels:  tool, gui
Mootool
A handy tool set for developers. 开发者常备小工具
Stars: ✭ 141 (-41.98%)
Mutual labels:  tool, gui
Gsap Player
A small, customizable youtube-like player for gsap timelines
Stars: ✭ 92 (-62.14%)
Mutual labels:  player, timeline
Googledriveuploadtool
A tool for Windows to upload and manage files in Google Drive. It resumes uploads in case of an error or failure. Perfect for uploading large files or if your connection is unstable.
Stars: ✭ 58 (-76.13%)
Mutual labels:  tool, gui
Mdline
Markdown timeline format and toolkit.
Stars: ✭ 111 (-54.32%)
Mutual labels:  tool, timeline
Black Widow
GUI based offensive penetration testing tool (Open Source)
Stars: ✭ 124 (-48.97%)
Mutual labels:  tool, gui
Mojs Curve Editor
GUI for live easing/property curves editing
Stars: ✭ 196 (-19.34%)
Mutual labels:  tool, gui
Xmly Downloader Qt5
喜马拉雅FM专辑下载器. 支持VIP与付费专辑. 使用Go+Qt5编写(Not Qt Binding).
Stars: ✭ 214 (-11.93%)
Mutual labels:  tool, gui
Kafka Ui
Open-Source Web GUI for Apache Kafka Management
Stars: ✭ 230 (-5.35%)
Mutual labels:  gui
Storagesystem
🗒️ Personal Stock Control System
Stars: ✭ 236 (-2.88%)
Mutual labels:  gui
Xboxkeyboardmouse
Keyboard and mouse for Xbox One streaming on Windows 10
Stars: ✭ 235 (-3.29%)
Mutual labels:  gui
Flutter installer
Flutter Installer is an installer for Flutter built with Flutter 💙😎✌
Stars: ✭ 234 (-3.7%)
Mutual labels:  tool
Laravel Zero
A PHP framework for console artisans
Stars: ✭ 2,821 (+1060.91%)
Mutual labels:  tool
Chroma
A general purpose syntax highlighter in pure Go
Stars: ✭ 3,013 (+1139.92%)
Mutual labels:  tool
Oblivion
Data leak checker & OSINT Tool
Stars: ✭ 237 (-2.47%)
Mutual labels:  gui
Swift Radio Pro
Professional Radio Station App for iOS!
Stars: ✭ 2,644 (+988.07%)
Mutual labels:  player
Life
Life - a timeline of important events in my life
Stars: ✭ 2,627 (+981.07%)
Mutual labels:  timeline

@mojs/player – npm

GUI player to control your animations.

@mojs/player

Player controls for mojs. Intended to help you to craft mojs animation sequences. To be clear, this player is not needed to play mojs animations. It is just a debug tool that gives you the ability to:

  • control your sequences with GUI while working on them
  • it saves the current progress of your animation thus you don't loose the focus
  • it gives you bounds to constrain focus point of your animation
  • it gives you the control over the speed of animation
  • it gives you the ability to seek animations freely
  • it saves player's state and settings thus they not get lost when page reloaded

Installation

The MojsPlayer depends on mojs >= 0.225.2 so make sure you link it first.

# cdn
<script src="https://cdn.jsdelivr.net/npm/@mojs/player"></script>

# npm
npm i @mojs/player

Import MojsPlayer constructor to your code, depending on your environment:

const MojsPlayer = require('mojs-player').default;

// or
import MojsPlayer from '@mojs/player';

If you installed it with script link — you should have MojsPlayer global

Usage

Construct MojsPlayer and pass your main Tween/Timeline to the add option:

// create the timeline
const mainTimeline = new mojs.Timeline({});

// add the timeline to the player
const mojsPlayer = new MojsPlayer({
  add: mainTimeline
});

The add option is the only required option to launch: player's controls should appear at the bottom of the page when ready

You can also set other player initial state:

const mojsPlayer = new MojsPlayer({

  // required
  add:          mainTimeline,

  // optionally
  className:    '',         // class name to add to main HTMLElement
  isSaveState:  true,       // determines if should preserve state on page reload
  isPlaying:    false,      // playback state
  progress:     0,          // initial progress
  isRepeat:     false,      // determines if it should repeat after completion
  isBounds:     false,      // determines if it should have bounds
  leftBound:    0,          // left bound position  [0...1]
  rightBound:   1,          // right bound position [0...1]
  isSpeed:      false,      // determines if speed control should be open
  speed:        1,          // `speed` value
  isHidden:     false,      // determines if the player should be hidden
  precision:    0.1,        // step size for player handle - for instance, after page reload - player should restore timeline progress - the whole timeline will be updated incrementally with the `precision` step size until the progress will be met.
  name:         'mojs-player', // name for the player - mainly used for localstorage identifier, use to distinguish between multiple local players
  onToggleHide(isHidden) {  // should be called after user taps on the hide-button (isHidden is a boolean, indicating the visibility state of the player)
    if (isHidden) {
      // do something when player is invisible
    } else {
      // do something when player is visible
    }
  }
});

Shortcuts

  • alt + p - toggle play/pause playback state
  • alt + - - decrease progress by 1/100
  • alt + + - increase progress by 1/100
  • shift + alt + - - decrease progress by 1/10
  • shift + alt + + - increase progress by 1/10
  • alt + s - stop playback
  • alt + r - toggle repeat state
  • alt + b - toggle bounds state
  • alt + h - toggle show/hide player state
  • alt + q - reset speed to 1x
  • alt + 2 - decrease speed by 1/50
  • alt + 3 - increase speed by 1/50
  • shift + alt + 2 - decrease speed by 1/10
  • shift + alt + 3 - increase speed by 1/10

Development

Install webpack globally:

[sudo] npm install webpack -g

Install dependencies with npm:

[sudo] npm install

Run webpack:

webpack

Please make sure you are on the dev branch before making changes.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].