{"id":20180392,"url":"https://github.com/brunnolou/gleis","last_synced_at":"2025-08-02T02:34:51.966Z","repository":{"id":73656591,"uuid":"99383852","full_name":"brunnolou/gleis","owner":"brunnolou","description":"Physics for dragging UI animation","archived":false,"fork":false,"pushed_at":"2017-08-29T01:09:30.000Z","size":198,"stargazers_count":13,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-10T04:57:24.903Z","etag":null,"topics":["animation","mobile","physics","ux"],"latest_commit_sha":null,"homepage":"https://brunnolou.github.io/gleis/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/brunnolou.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2017-08-04T22:29:03.000Z","updated_at":"2024-12-15T07:56:35.000Z","dependencies_parsed_at":"2023-06-03T22:30:30.836Z","dependency_job_id":null,"html_url":"https://github.com/brunnolou/gleis","commit_stats":{"total_commits":10,"total_committers":1,"mean_commits":10.0,"dds":0.0,"last_synced_commit":"bda2a83c97b05d26330e09f7528f30efa20c4edc"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/brunnolou/gleis","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brunnolou%2Fgleis","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brunnolou%2Fgleis/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brunnolou%2Fgleis/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brunnolou%2Fgleis/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/brunnolou","download_url":"https://codeload.github.com/brunnolou/gleis/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brunnolou%2Fgleis/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268327917,"owners_count":24232773,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-02T02:00:12.353Z","response_time":74,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["animation","mobile","physics","ux"],"created_at":"2024-11-14T02:30:31.396Z","updated_at":"2025-08-02T02:34:51.917Z","avatar_url":"https://github.com/brunnolou.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Gleis\n[![npm version](https://badge.fury.io/js/gleis.svg)](https://badge.fury.io/js/gleis)\n![](https://david-dm.org/brunnolou/gleis.svg)\n![](https://img.shields.io/github/size/brunnolou/gleis/lib/index.min.js.svg)\n\n# Physics for dragging UI animation\n\n## Install\n`npm install gleis`\n\n## Usage\n```html\n\u003cdiv class=\"track\"\u003e\n  \u003cdiv class=\"train\"\u003e\n    \u003cdiv class=\"car\"\u003e0\u003c/div\u003e\n    \u003cdiv class=\"car\"\u003e1\u003c/div\u003e\n    \u003cdiv class=\"car\"\u003e2\u003c/div\u003e\n    \u003cdiv class=\"car\"\u003e3\u003c/div\u003e\n  \u003c/div\u003e\n\u003c/div\u003e\n```\n\n```js\nimport Gleis from 'gleis';\n\nnew Gleis({\n  track: document.querySelector('.track'),\n  train: document.querySelector('.train'),\n  sleepers: [-200, —400, -600]\n});\n\n```\nSee the \u003ca href=\"https://brunnolou.github.io/gleis/\"\u003eDemos\u003c/a\u003e.\n\nTo see more code implementations check the\n\u003ca href=\"https://github.com/brunnolou/gleis/tree/master/examples\" target=\"_blank\"\u003eexamples folder\u003c/a\u003e.\n\n## Demo\n\n`npm install`\n\n`npm start`\n\n`./examples/` folder will be running on: `http://localhost:5000`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrunnolou%2Fgleis","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbrunnolou%2Fgleis","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrunnolou%2Fgleis/lists"}