4.0.0 • Published 6 years ago

momentum v4.0.0

Weekly downloads
35
License
Apache-2.0
Repository
github
Last release
6 years ago

Momentum Travis

Add momentum to any DOM element with a simple API. It's like iScroll, except not for scrolling anything. momentum also supports mouse and touch events.

const momentum = require('momentum')

// make sure the element is in the document and the document is fully loaded
window.addEventListener('DOMContentLoaded', () => {
  const box = document.querySelector('box')
  momentum(box, (x, y) => {
    console.log('x:', x, 'y:', y)
  })
})

NPM

4.0.0

6 years ago

3.0.0

6 years ago

2.0.0

6 years ago

1.0.1

8 years ago

1.0.0

8 years ago

0.1.3

11 years ago

0.1.2

11 years ago

0.1.1

11 years ago

0.1.0

11 years ago

0.0.12

11 years ago

0.0.11

11 years ago

0.0.10

11 years ago

0.0.9

11 years ago

0.0.8

11 years ago

0.0.7

11 years ago

0.0.6

11 years ago

0.0.5

11 years ago

0.0.4

11 years ago

0.0.0

11 years ago