{"id":15290789,"url":"https://github.com/codersuresh/smooth-scroll","last_synced_at":"2026-05-17T19:31:56.428Z","repository":{"id":181573324,"uuid":"666984785","full_name":"coderSuresh/smooth-scroll","owner":"coderSuresh","description":"NPM package to implement smooth scroll behaviour on back press","archived":false,"fork":false,"pushed_at":"2023-07-16T11:13:29.000Z","size":21,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-29T11:05:21.884Z","etag":null,"topics":["npm","npm-package","web"],"latest_commit_sha":null,"homepage":"https://smooth-scroll-on-back-press.netlify.app/","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/coderSuresh.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-07-16T08:50:43.000Z","updated_at":"2023-07-16T11:07:59.000Z","dependencies_parsed_at":"2024-09-30T16:09:34.224Z","dependency_job_id":"e39f63a0-b79f-4f21-bd2b-77d7bae61539","html_url":"https://github.com/coderSuresh/smooth-scroll","commit_stats":null,"previous_names":["codersuresh/smooth-scroll"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/coderSuresh/smooth-scroll","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coderSuresh%2Fsmooth-scroll","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coderSuresh%2Fsmooth-scroll/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coderSuresh%2Fsmooth-scroll/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coderSuresh%2Fsmooth-scroll/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/coderSuresh","download_url":"https://codeload.github.com/coderSuresh/smooth-scroll/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coderSuresh%2Fsmooth-scroll/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":276223243,"owners_count":25605793,"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-09-21T02:00:07.055Z","response_time":72,"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":["npm","npm-package","web"],"created_at":"2024-09-30T16:09:30.342Z","updated_at":"2025-10-05T22:44:44.207Z","avatar_url":"https://github.com/coderSuresh.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Smooth Scroll on Back Press\n\n[![npm version](https://badge.fury.io/js/smooth-scroll-on-back-press.svg)](https://badge.fury.io/js/smooth-scroll-on-back-press)\n\n## Description\n\nThis is a simple script to add smooth scroll to anchor links on your website. When a user clicks on an anchor and goes to the different page and comes back to the page where the anchor link is, the page will scroll to the anchor link smoothly.\n\n## Installation\n\n1. Run `npm install smooth-scroll-on-back-press` to install the package.\n2. Add the following code to your JavaScript file such as `app.js` \n    \n    ```javascript\n    import smoothScroll from 'smooth-scroll-on-back-press';\n    smoothScroll();\n    ```\n\nNow you are good to go. The script will automatically add smooth scroll to all the anchor links on your website.\n\n\n## Example\nYou can see the example [here](https://smooth-scroll-on-back-press.netlify.app/).\n\n## Limitations\n\nThe script will not work if there is no scroll on the page after the page load.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodersuresh%2Fsmooth-scroll","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodersuresh%2Fsmooth-scroll","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodersuresh%2Fsmooth-scroll/lists"}