{"id":24961329,"url":"https://github.com/streammedev/scroll-to","last_synced_at":"2025-03-28T22:27:38.481Z","repository":{"id":57163114,"uuid":"66310106","full_name":"StreamMeDev/scroll-to","owner":"StreamMeDev","description":"Smoothly scroll somewhere","archived":false,"fork":false,"pushed_at":"2017-12-06T17:21:50.000Z","size":11,"stargazers_count":1,"open_issues_count":2,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-04-15T01:05:03.788Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"isc","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/StreamMeDev.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":"2016-08-22T21:38:43.000Z","updated_at":"2018-04-12T20:09:50.000Z","dependencies_parsed_at":"2022-09-01T00:20:11.475Z","dependency_job_id":null,"html_url":"https://github.com/StreamMeDev/scroll-to","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StreamMeDev%2Fscroll-to","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StreamMeDev%2Fscroll-to/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StreamMeDev%2Fscroll-to/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StreamMeDev%2Fscroll-to/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/StreamMeDev","download_url":"https://codeload.github.com/StreamMeDev/scroll-to/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246108357,"owners_count":20724715,"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":"2025-02-03T08:52:09.401Z","updated_at":"2025-03-28T22:27:38.463Z","avatar_url":"https://github.com/StreamMeDev.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Scroll To\n\n[![NPM Version](https://img.shields.io/npm/v/@streammedev/scroll-to.svg)](https://npmjs.org/package/@streammedev/scroll-to)\n[![NPM Downloads](https://img.shields.io/npm/dm/@streammedev/scroll-to.svg)](https://npmjs.org/package/@streammedev/scroll-to)\n[![Build Status](https://travis-ci.org/StreamMeDev/scroll-to.svg?branch=master)](https://travis-ci.org/StreamMeDev/scroll-to)\n[![js-happiness-style](https://img.shields.io/badge/code%20style-happiness-brightgreen.svg)](https://github.com/JedWatson/happiness)\n\nSmoothly transition any element's scroll position along either axis.\n\n## Install\n\n```\n$ npm install --save @streammedev/scroll-to\n```\n\n## Usage\n\n```javascript\nvar scrollTo = require('@streammedev/scroll-to');\n\nfunction someEventHandler () {\n\tscrollTo({\n\t\telement: window, // The element to scroll (default is window)\n\t\ty: 1000, // scroll the window to a y-coordinate of 1000px (default is 0)\n\t\tx: 1000, // scroll the window to a x-coordinate of 1000px (default is 0)\n\t\tduration: 500 // 500ms to complete the scrolling animation (default is 150)\n\t});\n}\n\n// cancel an in progress animation\nvar stop = scrollTo();\n// Will stop wherever it is in the process of the animation\nstop();\n```\n\n## Development\n\nThis package follows semver, when you wish to publish a version run the proper npm command.  For example, if we made a bug fix you can do this:\n\n```\n$ npm version patch\n$ git push\n$ npm publish\n```\n\nHere are the other types of version bumps:\n\n- Major (`npm version major`): This is for breaking changes. Anytime a method is changed or the functionality is modified this bump should be made.\n- Minor (`npm version minor`): This is for features additions. When a new method is added which doesn't affect the behavior of existing features, this bump should be made.\n- Patch (`npm version patch`): This is for bug fixes. Only bump this if it is safe for production code to update wihout being QA'd.  (AKA, almost never)\n\nFor each of these you can run a 'pre' version by prepending to the command, ex `npm version preminor`.\n\nAll feature development should be done on a branch off `master`.  When a feature is complete and the pull request approved, publish a 'pre' version of the package for testing across environments.  To install that 'pre' version of the package do the following, where the verison number contains the correct 'pre' version:\n\n```\n$ npm install --save @streammedev/scroll-to@1.0.0-0\n```\n\nRunning the tests:\n\n```\n$ npm install \u0026\u0026 npm test\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstreammedev%2Fscroll-to","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstreammedev%2Fscroll-to","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstreammedev%2Fscroll-to/lists"}