Coder Social home page Coder Social logo

mojs-website's Introduction

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

# npm
npm install @mojs/core

# yarn
yarn add @mojs/core

Then import it like any other module inside your build:

import mojs from '@mojs/core';

new mojs.Html({
  // ...
});

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 web page, load the latest build from your favorite CDN using a generic script markup:

<!-- unpkg -->
<script src="https://unpkg.com/@mojs/core"></script>

<!-- jsdelivr -->
<script src="https://cdn.jsdelivr.net/npm/@mojs/core"></script>

Then instanciate using:

<script>
  new mojs.Html({
    // ...
  });
</script>

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!

Developer

Get technical informations, open an issue/pull request or join the (amazing) community!

Showcase

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.

mojs-website's People

Contributors

emilong avatar jimihford avatar legomushroom avatar rachsmithcodes avatar shawncplus avatar shortdiv avatar xavierfoucrier avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

mojs-website's Issues

Links doesn't work good on Android

When a Android user clicks an link in Chrome (using react component react-tappable (used in UniteLink) ), this error occurs:

Deferred long-running timer task(s) to improve scrolling smoothness. See crbug.com/574343.

Works when long clicking a link, not on a single tap. Eg only works after the underline animation is complete.

I guess there's a timeout wating for the animation to complete before sending the user to the URL.

Small error in the tutorials: Shape 'curve' points

Working in the tutorials, found what I think is an error- the Shape example for curve is using an object for points:

var curve = new mojs.Shape({ shape: 'curve', points: 11, radius: 25, radiusY: 50, left: '50%', fill: 'none', stroke: 'deeppink', isShowStart: true, });

But I don't think the points do anything for the curve (that I've seen). If they do, it would be good to clarify in the text below because it's a little confusing.

Thank you!

Wrong / no route for favicons

Error on all favicons results in no favicons:
"/favicons/apple-icon-76x76.png". Make sure you have <Route path="/favicons/apple-icon-76x76.png"> somewhere in your routes

Some header links download files instead of navigating.

In the site header...
image

Clicking "APIs", "Demos", or "Contribute" downloads an HTML file instead of navigating to the page. This is happing for me on multiple desktop browsers.

I think it might have something to do with the download="false" attribute that I'm seeing on the links. I'm thinking "false" is being interpreted as a filename string instead of a boolean. Some docs suggest that might be the case.

It looks like the code producing this attribute is on the dev branch (not master), so I'm not sure where to contribute a fix. I also had some trouble getting the site to run locally so I don't have a PR for you. :(

Gifs Routing

In the Tutorial section for Shapes and Swirl you'll notice that the Gif Components don't render their images under 'Click Here To See The Gifs'(located right above the UI Examples). I believe it likely has to do with the Router you have setup. I was going to take a look and try to correct it myself, but I'm not familiar with CoffeeScript JSX and I feel that it's probably a minor fix.

Excellent work so far! Greatly looking forward to this library!

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.