{"id":19312176,"url":"https://github.com/bigcommerce/themes-lib-scroll-link","last_synced_at":"2025-08-21T05:33:05.667Z","repository":{"id":43901551,"uuid":"373507438","full_name":"bigcommerce/themes-lib-scroll-link","owner":"bigcommerce","description":null,"archived":false,"fork":false,"pushed_at":"2023-10-10T13:53:11.000Z","size":1167,"stargazers_count":0,"open_issues_count":19,"forks_count":2,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-02-24T03:45:01.845Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bigcommerce.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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":"2021-06-03T12:56:32.000Z","updated_at":"2023-10-06T20:45:57.000Z","dependencies_parsed_at":"2024-11-10T00:33:35.955Z","dependency_job_id":"cd5fa7a9-04fa-4774-9489-2da6337f65af","html_url":"https://github.com/bigcommerce/themes-lib-scroll-link","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/bigcommerce/themes-lib-scroll-link","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bigcommerce%2Fthemes-lib-scroll-link","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bigcommerce%2Fthemes-lib-scroll-link/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bigcommerce%2Fthemes-lib-scroll-link/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bigcommerce%2Fthemes-lib-scroll-link/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bigcommerce","download_url":"https://codeload.github.com/bigcommerce/themes-lib-scroll-link/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bigcommerce%2Fthemes-lib-scroll-link/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271430785,"owners_count":24758372,"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-08-21T02:00:08.990Z","response_time":74,"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":[],"created_at":"2024-11-10T00:33:26.402Z","updated_at":"2025-08-21T05:33:05.646Z","avatar_url":"https://github.com/bigcommerce.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Bigcommerce Scroll Link Module\n\nScroll to the top or any ID / class\n\n### Installation\n\n```\nnpm i --save github:pixelunion/bc-scroll-link\n```\n\n### Usage\n\n```\nimport $ from 'jquery';\nimport ScrollLink from 'bc-scroll-link';\n\nnew ScrollLink({\n  duration: 1000,\n  easing: 'swing'\n});\n```\n\n### Options\n\n\n`duration`: \nthe scroll duration in milliseconds.\n\n`easing`: \neasing (only 'swing' and 'linear' available by default).\n\n`delay`: delay before scrolling.\n\n`updateHash`: (defaults to `true`) add the target to the URL? Set to `false` if targeting classes instead of IDs.\n\n### Methods\n`scrollToContent(target)`: Scroll to a target without using an anchor / button.\n\n### Some sample markup\n\n```\n\u003cbutton data-scroll=\"#\"\u003eTop\u003c/button\u003e\n\n\u003cbutton data-scroll=\"#some-section\"\u003eJump to: Some Section\u003c/button\u003e\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbigcommerce%2Fthemes-lib-scroll-link","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbigcommerce%2Fthemes-lib-scroll-link","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbigcommerce%2Fthemes-lib-scroll-link/lists"}