{"id":42210449,"url":"https://github.com/chuson1996/really-smooth-scroll","last_synced_at":"2026-01-27T00:46:19.420Z","repository":{"id":57348863,"uuid":"91387303","full_name":"chuson1996/really-smooth-scroll","owner":"chuson1996","description":"A script that smoothen scrolling in the browser","archived":false,"fork":false,"pushed_at":"2017-05-28T16:49:01.000Z","size":80,"stargazers_count":21,"open_issues_count":3,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-09-21T06:54:04.142Z","etag":null,"topics":["javascript","scroll","scrolling","smooth-scrolling"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/chuson1996.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-05-15T21:40:10.000Z","updated_at":"2021-09-26T15:55:58.000Z","dependencies_parsed_at":"2022-08-28T01:40:30.926Z","dependency_job_id":null,"html_url":"https://github.com/chuson1996/really-smooth-scroll","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/chuson1996/really-smooth-scroll","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chuson1996%2Freally-smooth-scroll","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chuson1996%2Freally-smooth-scroll/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chuson1996%2Freally-smooth-scroll/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chuson1996%2Freally-smooth-scroll/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chuson1996","download_url":"https://codeload.github.com/chuson1996/really-smooth-scroll/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chuson1996%2Freally-smooth-scroll/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28794012,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-26T21:49:50.245Z","status":"ssl_error","status_checked_at":"2026-01-26T21:48:29.455Z","response_time":59,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["javascript","scroll","scrolling","smooth-scrolling"],"created_at":"2026-01-27T00:46:18.818Z","updated_at":"2026-01-27T00:46:19.411Z","avatar_url":"https://github.com/chuson1996.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# really-smooth-scroll\n\n[Demo](http://chuson1996.github.io/really-smooth-scroll)  \n[Live Demo](https://youtu.be/aiG4rMLHjUc?t=2m54s)\n\nThis is it. I have been looking for libraries, shims and tricks for smooth scrolling for way too long on the Internet. And none actually provides the smoothness that I want. THIS ENDS NOW. **(However, this shim only takes effect in desktop browsers, not yet supported for mobile browsers. But soon it will. )**\n\nThis shim overrides browser's `window.scrollTo` function. Instead of jumping immediately, it smoothly scrolls to the scroll position (Check demo). If you want the use the old behavior, use `window.oldScrollTo`.\n\nThe magic algorithm is based on the spring animation in react-motion. [Wanna see why it's awesome?](https://youtu.be/1tavDv5hXpo?t=12m25s)\n\n### Install\n\n```bash\nnpm install --save really-smooth-scroll\n# or if you use yarn\nyarn add really-smooth-scroll\n```\n\n### Usage\n```js\nconst ReallySmoothScroll = require('really-smooth-scroll');\n// or\n// import ReallySmoothScroll from 'really-smooth-scroll';\n\nReallySmoothScroll.shim();\n// Done. Coundn't be easier.\n\n// If you want to adjust the scrolling sensitivity (Optional)\nReallySmoothScroll.config({\n  mousewheelSensitivity: 6, // Default\n  keydownSensitivity: 6 // Default (When you press arrow down/up key)\n});\n```\n\nIf you don't use webpack or babel, embed one of these 2 scripts to your html\n\n```html\n\u003c!-- Production --\u003e\n\u003cscript src=\"https://cdn.rawgit.com/chuson1996/really-smooth-scroll/ff3210e1/build/really-smooth-scroll.js\"\u003e\u003c/script\u003e\n\n\u003c!-- Development --\u003e\n\u003cscript src=\"https://rawgit.com/chuson1996/really-smooth-scroll/master/build/really-smooth-scroll.js\"\u003e\u003c/script\u003e\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchuson1996%2Freally-smooth-scroll","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchuson1996%2Freally-smooth-scroll","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchuson1996%2Freally-smooth-scroll/lists"}