gle
gleis
npm i gleis
gle

gleis

Physics for dragging UI animation

by Bruno Lourenço

0.1.1 (see all)License:MITTypeScript:Not Found
npm i gleis
Readme

Gleis

npm version

Physics for dragging UI animation

Install

npm install gleis

Usage

<div class="track">
  <div class="train">
    <div class="car">0</div>
    <div class="car">1</div>
    <div class="car">2</div>
    <div class="car">3</div>
  </div>
</div>
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

Downloads/wk

1

GitHub Stars

13

LAST COMMIT

5yrs ago

MAINTAINERS

1

CONTRIBUTORS

2

OPEN ISSUES

0

OPEN PRs

0
VersionTagPublished
0.1.1
latest
5yrs ago
No alternatives found
No tutorials found
Add a tutorial
No dependencies found

Rate & Review

100
No reviews found
Be the first to rate