o2edu / boost.js

DOM, events and animations library for modern browsers.

Home Page:http://mathigon.io/boost

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Boost.js

Bost.js is a library that makes working with browsers easier: everything from DOM manipulation to web components, event handling, animations, routing, multi-threading and AJAX requests. It was developed for Mathigon.org, an award-winning mathematics education project.

npm npm

Features

  • AJAX utilities
  • Advanced animations and transitions
  • Audio and Speech Recognition utilities
  • Browser load and resize events, Cookies and Local Storage, Keyboard events
  • Colour utilities, gradients and interpolation
  • Draggable elements
  • DOM Element Utilities: classes, dimensions, scrolling, styling, DOM manipulation, events, animations, cursors, SVG and Canvas tools
  • Events: click, slide, scroll, hover, intersection, pointer and mouse events
  • Router for single-page sites
  • Template and expression parsing
  • Multi-threading using WebWorkers
  • Custom webcomponents wrapper

Usage

First, install boost.js from NPM using

npm install @mathigon/boost --save

Boost.js uses ES6 imports. While some browsers and platforms now support this feature, we recommend using a transpiler such as Babel or Rollup. Make sure that you configure your compiler to correctly resolve these imports. For Rollup, we recommend using the rollup-plugin-node-resolve plugin.

Now, simply import all functions and classes you need, using

import { $, CustomElement, Browser } from '@mathigon/boost'

Contributing

We welcome community contributions: please file any bugs you find or send us pull requests with improvements. You can find out more on Mathigon.io.

Before submitting a pull request, you will need to sign the Mathigon Individual Contributor License Agreement.

Copyright and License

Copyright © Mathigon (dev@mathigon.org)
Released under the MIT license

About

DOM, events and animations library for modern browsers.

http://mathigon.io/boost

License:MIT License


Languages

Language:JavaScript 100.0%