Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/brunnolou/gleis

Physics for dragging UI animation
https://github.com/brunnolou/gleis

animation mobile physics ux

Last synced: about 2 months ago
JSON representation

Physics for dragging UI animation

Awesome Lists containing this project

README

        

# Gleis
[![npm version](https://badge.fury.io/js/gleis.svg)](https://badge.fury.io/js/gleis)
![](https://david-dm.org/brunnolou/gleis.svg)
![](https://img.shields.io/github/size/brunnolou/gleis/lib/index.min.js.svg)

# 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`