A light JavaScript library.
$ npm install @ariii/r --dev
Look at the src folder for more information.
import R from '@ariii/r'
const body = R.Dom.body
R.L(element, 'a', 'click', callback)
const isObj = R.Is.obj(variable)
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})
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()
Copyright (c) 2019-present, Aristide Benoist.