0.1.8 • Published 5 years ago

@ariii/r v0.1.8

Weekly downloads
8
License
MIT
Repository
github
Last release
5 years ago

Rnpm version dev dependencies minified size license

A light JavaScript library.

Installation

$ npm install @ariii/r --dev

Usage

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

Add 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

Aristide Benoist

License

MIT

Copyright (c) 2019-present, Aristide Benoist.

0.1.8

5 years ago

0.1.4

6 years ago

0.1.3

6 years ago

0.1.5

6 years ago

0.1.2

6 years ago

0.1.0

6 years ago

0.1.1

6 years ago

0.0.44

6 years ago

0.0.43

6 years ago

0.0.42

6 years ago

0.0.41

6 years ago

0.0.40

6 years ago

0.0.39

6 years ago

0.0.38

6 years ago

0.0.37

6 years ago

0.0.36

6 years ago

0.0.35

6 years ago

0.0.34

6 years ago

0.0.33

6 years ago

0.0.32

6 years ago

0.0.31

6 years ago

0.0.30

6 years ago

0.0.29

6 years ago

0.0.28

6 years ago

0.0.27

6 years ago

0.0.26

6 years ago

0.0.25

6 years ago

0.0.24

6 years ago

0.0.23

6 years ago

0.0.22

6 years ago

0.0.21

6 years ago

0.0.20

6 years ago

0.0.19

6 years ago

0.0.18

6 years ago

0.0.17

6 years ago

0.0.16

6 years ago

0.0.15

6 years ago

0.0.14

6 years ago

0.0.13

6 years ago

0.0.12

6 years ago

0.0.11

6 years ago

0.0.10

6 years ago

0.0.9

6 years ago

0.0.8

6 years ago

0.0.7

6 years ago

0.0.6

6 years ago

0.0.5

6 years ago

0.0.4

6 years ago