{"id":17420051,"url":"https://github.com/bendrucker/smooth-move","last_synced_at":"2025-04-15T00:04:32.256Z","repository":{"id":57146996,"uuid":"41271405","full_name":"bendrucker/smooth-move","owner":"bendrucker","description":"Smoothly scroll a scrollable element","archived":false,"fork":false,"pushed_at":"2019-08-19T21:49:51.000Z","size":6,"stargazers_count":6,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-15T00:03:42.366Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/bendrucker.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}},"created_at":"2015-08-23T23:15:54.000Z","updated_at":"2022-01-29T05:57:23.000Z","dependencies_parsed_at":"2022-09-06T12:52:20.036Z","dependency_job_id":null,"html_url":"https://github.com/bendrucker/smooth-move","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bendrucker%2Fsmooth-move","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bendrucker%2Fsmooth-move/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bendrucker%2Fsmooth-move/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bendrucker%2Fsmooth-move/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bendrucker","download_url":"https://codeload.github.com/bendrucker/smooth-move/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248981261,"owners_count":21193146,"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","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":[],"created_at":"2024-10-17T02:39:41.672Z","updated_at":"2025-04-15T00:04:32.230Z","avatar_url":"https://github.com/bendrucker.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# smooth-move [![Build Status](https://travis-ci.org/bendrucker/smooth-move.svg?branch=master)](https://travis-ci.org/bendrucker/smooth-move) [![Greenkeeper badge](https://badges.greenkeeper.io/bendrucker/smooth-move.svg)](https://greenkeeper.io/)\n\n\u003e Smoothly scroll a scrollable element\n\n\n## Install\n\n```\n$ npm install --save smooth-move\n```\n\n\n## Usage\n\n```js\nvar scroll = require('smooth-move')\n\nscroll(element, {\n  x: 0,\n  y: 20\n})\n//=\u003e scrolls the element down `y` pixels\n```\n\n## API\n\n#### `scroll(element, options)` -\u003e `undefined`\n\n##### element\n\n*Required*  \nType: `HTMLElement`\n\nA scrollable element.\n\n##### options\n\n###### x / y\n\n*Required*  \nType: `number`\n\nDistance to scroll along the x/y axes.\n\n###### ease\n\nType: `array[number]`\nDefault: `[0.25, 0.1, 0.25, 1]'`\n\n[Cubic bezier points](http://cubic-bezier.com)\n\n###### duration\n\nType: `number`  \nDefault: `1000`\n\nThe duration of the animation\n\n![Smooth move Ferguson](http://media.tumblr.com/tumblr_lkh26ovh9i1qfy7a6.jpg)\n\n## License\n\nMIT © [Ben Drucker](http://bendrucker.me)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbendrucker%2Fsmooth-move","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbendrucker%2Fsmooth-move","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbendrucker%2Fsmooth-move/lists"}