{"id":15940167,"url":"https://github.com/pxlrbt/smoothscroll","last_synced_at":"2025-10-26T05:46:09.291Z","repository":{"id":108876880,"uuid":"259585769","full_name":"pxlrbt/smoothscroll","owner":"pxlrbt","description":"Smoothly scroll to anchors.","archived":false,"fork":false,"pushed_at":"2020-04-28T10:54:11.000Z","size":2,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-14T17:06:04.965Z","etag":null,"topics":["javascript","js","smooth-scrolling","smoothscroll","vanilla-javascript","vanilla-js","vanillajs"],"latest_commit_sha":null,"homepage":null,"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/pxlrbt.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":"2020-04-28T09:05:22.000Z","updated_at":"2023-04-11T15:29:31.000Z","dependencies_parsed_at":null,"dependency_job_id":"9ab887ce-78d5-4c86-859d-a16611e9008e","html_url":"https://github.com/pxlrbt/smoothscroll","commit_stats":{"total_commits":2,"total_committers":1,"mean_commits":2.0,"dds":0.0,"last_synced_commit":"aed60215efff8e85660d4a37925a96bbe6b503df"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pxlrbt%2Fsmoothscroll","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pxlrbt%2Fsmoothscroll/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pxlrbt%2Fsmoothscroll/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pxlrbt%2Fsmoothscroll/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pxlrbt","download_url":"https://codeload.github.com/pxlrbt/smoothscroll/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247078782,"owners_count":20879949,"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":["javascript","js","smooth-scrolling","smoothscroll","vanilla-javascript","vanilla-js","vanillajs"],"created_at":"2024-10-07T06:40:27.896Z","updated_at":"2025-10-26T05:46:09.211Z","avatar_url":"https://github.com/pxlrbt.png","language":"JavaScript","readme":"# Smoothscroll\n\nSimple vanilla js library to smoothly scroll to anchors.\n\n## Installation\n\n```bash\nnpm install @pxlrbt/smoothscroll\n```\n\n## Usage\n\n```js\nimport Smoothscroll from '@pxlrbt/smoothscroll';\nnew Smoothscroll({\n    speed: 400,\n    elementSelector: 'a[href*=\"#\"]',\n    useHash: true,\n    threshold: function () {\n        return document.querySelector('header').offsetHeight;\n    }\n});\n```\n\n```html\n\u003ca href=\"#section\"\u003eScroll to section\u003c/a\u003e\n...\n\u003csection id=\"section\"\u003e...\u003c/section\u003e\n````\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpxlrbt%2Fsmoothscroll","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpxlrbt%2Fsmoothscroll","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpxlrbt%2Fsmoothscroll/lists"}