mo.js

The motion graphics toolbelt for the web

README

mo · js – npm ci Coverage Status Slack


The motion graphics toolbelt for the web.

mo · js

Intro

mo · js is a javascript motion graphics library that is a fast, retina ready, modular and open source. In comparison to other libraries, it has a different syntax and code animation structure approach. The declarative API provides you a complete control over the animation, making it customizable with ease.

The library provides built-in components to start animating from scratch like html, shape, swirl, burst and stagger, but also bring you tools to help craft your animation in a most natural way. Using mojs on your site will enhance the user experience, enrich your content visually and create delightful animations precisely.

Install

Use with a bundler


Mojs is published on the NPM registry and GPR registry, so you can install it through the command line interpreter using your favorite package manager. This is the best way to install the library if you are comfortable with javascript bundlers like webpack or rollup.

  1. ```sh
  2. # npm
  3. npm install @mojs/core

  4. # yarn
  5. yarn add @mojs/core
  6. ```

Then import it like any other module inside your build:

  1. ```js
  2. import mojs from '@mojs/core';

  3. new mojs.Html({
  4.   // ...
  5. });
  6. ```

Using a bundler has many advantages like output compression, code splitting, tree shaking, etc., so we encourage you to use this kind of tool with mojs.


Use with a CDN


To rapidly include the minified production file in your webpage, load the latest build from your favorite CDN using a generic script markup:

  1. ```html
  2. !-- unpkg -->
  3. <script src="https://unpkg.com/@mojs/core"></script>
  4. !-- jsdelivr -->
  5. <script src="https://cdn.jsdelivr.net/npm/@mojs/core"></script>
  6. ```

Then instanciate using:

  1. ```html
  2. <script>
  3.   new mojs.Html({
  4.     // ...
  5.   });
  6. </script>
  7. ```

By default, if no one is specified, the CDN will automatically target the @latest version of mojs and load the UMD build from dist/mo.umd.js.


User guide

The base documentation you need to get started with mojs.

Learn

Discover the amazing things that mojs can do!
- Shape & Swirl _(Tutorial)_
- Burst _(Tutorial)_
- Icon animations powered by mo.js _(Codrops tutorial)_
- An Introduction to mo.js _(CSS tricks tutorial)_
- Web animations and mo.js _(Youtube video)_

Developer

Get technical informations, open an issue/pull request or join the (amazing) community!
- Slack workspace _(Not in the workspace yet? Use the invite link 🔓)_

Showcase

- Blast _(click to see)_
- Simple Burst _(click to see)_
- Dusty Burst _(click to see)_
- Twitter Fav _(click to see)_
- Twitter Fav (stars) _(click to see)_
- Twitter Fav Firework _(click to see)_
- Simple Ripple _(click to see)_

Browser support

- Chrome 49+
- Firefox 70+
- Opera 36+
- Safari 8+
- Edge 79+

Many other browsers may work, but are not extensively tested.


Maintainers

Since 2019, mojs ecosystem is maintained and developed by:

Contribute

If you want to report a bug or request a new feature/improvement, please read the project contributors guidelines before. Thanks for taking time to contribute.