https://github.com/brunnolou/gleis
Physics for dragging UI animation
https://github.com/brunnolou/gleis
animation mobile physics ux
Last synced: 23 days ago
JSON representation
Physics for dragging UI animation
- Host: GitHub
- URL: https://github.com/brunnolou/gleis
- Owner: brunnolou
- License: mit
- Created: 2017-08-04T22:29:03.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-08-29T01:09:30.000Z (over 7 years ago)
- Last Synced: 2025-03-24T06:04:57.934Z (about 1 month ago)
- Topics: animation, mobile, physics, ux
- Language: JavaScript
- Homepage: https://brunnolou.github.io/gleis/
- Size: 193 KB
- Stars: 13
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Gleis
[](https://badge.fury.io/js/gleis)

# Physics for dragging UI animation
## Install
`npm install gleis`## Usage
```html
0
1
2
3
``````js
import Gleis from 'gleis';new Gleis({
track: document.querySelector('.track'),
train: document.querySelector('.train'),
sleepers: [-200, —400, -600]
});```
See the Demos.To see more code implementations check the
examples folder.## Demo
`npm install`
`npm start`
`./examples/` folder will be running on: `http://localhost:5000`