@ariii/r
v0.1.8
Published
A light JavaScript library.
Downloads
107
Readme
R

A light JavaScript library.
Installation
$ npm install @ariii/r --devUsage
Look at the src folder for more information.
Import
import R from '@ariii/r'Return the body node of the document
const body = R.Dom.bodyAdd a click event listener
R.L(element, 'a', 'click', callback)Check if a variable is an object
const isObj = R.Is.obj(variable)Play animations with Merom
const animation = new R.M({el: '#id', p: {x: [0, 600, 'px']}, d: 2000, e: 'io4'})
animation.play()
animation.play({p: {x: {newEnd: 50}}, reverse: true})Build sequences of Merom with Timeline
const tl = new R.TL()
tl.from({el: '#id0', p: {x: [0, 600, 'px'], rotate: [0, 360]}, d: 300, e: 'i3', delay: 300})
tl.from({el: '#id1', p: {x: [0, 600, 'px'], rotate: [0, 360]}, d: 500, e: 'o6', cb: callback})
tl.play()
tl.pause()Author
License
Copyright (c) 2019-present, Aristide Benoist.
