@ariiiman/s
A light JavaScript library.
Last updated a year ago by ariiiman .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @ariiiman/s 
SYNC missed versions from official npm registry.

S

A light JavaScript library.

Installation

$ yarn add @ariiiman/s --dev

Usage

Look at the src folder in the github repository for more information

Import

import S from '@ariiiman/s'

Return the body node of the document

const body = S.Dom.body

Add scroll event listener

S.L(element, 'add', 'click', callback)

Check if a variable is an object

const isObj = S.Is.object(variable)

Play animations with Merom

const animation = new S.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 S.TL()
tl.from({el: '#id0', p: {x: [0, 600, 'px'], rotate: [0, 360]}, d: 500, e: 'linear'})
tl.from({el: '#id1', p: {x: [0, 600, 'px'], rotate: [0, 360]}, d: 500, e: 'linear', delay: 300, cb: myCallback})

tl.play()

tl.pause()

Author

Aristide Benoist

www.aristidebenoist.com

Licence

The MIT License (MIT)

Copyright (c) 2018 Aristide Benoist

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Current Tags

  • 2.4.0                                ...           latest (a year ago)

18 Versions

  • 2.4.0                                ...           a year ago
  • 2.3.0                                ...           2 years ago
  • 2.2.0                                ...           2 years ago
  • 2.1.9                                ...           2 years ago
  • 2.1.8                                ...           2 years ago
  • 2.1.7                                ...           2 years ago
  • 2.1.6                                ...           2 years ago
  • 2.1.5                                ...           2 years ago
  • 2.1.4                                ...           2 years ago
  • 2.1.3                                ...           2 years ago
  • 2.1.2                                ...           2 years ago
  • 2.1.1                                ...           2 years ago
  • 2.1.0                                ...           2 years ago
  • 2.0.3                                ...           2 years ago
  • 2.0.2                                ...           2 years ago
  • 2.0.1                                ...           2 years ago
  • 2.0.0                                ...           2 years ago
  • 1.0.0                                ...           2 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 19
Last Day 0
Last Week 18
Last Month 1
Dependencies (0)
None
Dev Dependencies (1)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |