{"id":21277930,"url":"https://github.com/b13/b_scrollto","last_synced_at":"2026-04-27T18:01:27.018Z","repository":{"id":58245004,"uuid":"43800972","full_name":"b13/b_scrollTo","owner":"b13","description":null,"archived":false,"fork":false,"pushed_at":"2015-10-07T09:25:28.000Z","size":128,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-09T23:38:55.931Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/b13.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":"2015-10-07T07:29:27.000Z","updated_at":"2017-08-12T01:13:08.000Z","dependencies_parsed_at":"2022-08-30T22:50:32.181Z","dependency_job_id":null,"html_url":"https://github.com/b13/b_scrollTo","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/b13%2Fb_scrollTo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/b13%2Fb_scrollTo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/b13%2Fb_scrollTo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/b13%2Fb_scrollTo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/b13","download_url":"https://codeload.github.com/b13/b_scrollTo/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243734428,"owners_count":20339291,"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":"2024-11-21T10:08:17.714Z","updated_at":"2025-12-30T18:05:15.575Z","avatar_url":"https://github.com/b13.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# b_scrollTo\nMinimal js scrolling module.\n\n## Installation via bower.\n\t bower install b_scrollTo -S\n\n## Usage\n\n### Use it as AMD module.\n\n\t//Scroll to window y-position of 300px.\n\trequire(['b_scrollTo']){\n\t\t$.scrollToPixel(300);\n\t};\n\n### Scroll the window to a defined pixel height.\n\n\t//With default animation duration of 500ms.\n\t$.scrollToPixel(100);\n\t\n\t//With specific animation duration of 1s.\n\t$.scrollToPixel(100, 1000);\n\t\n\t//If it should not be animated\n\t$.scrollToPixel(100, 0);\n\t//OR\n\t$.scrollToPixel(100, false);\n\t\n\t\n### Scroll to the top edge of an element.\n\n\t$.scrollTo(element);\n\t//OR\n\t$(element).scrollTo();\n\t\n\t//With a specific animation duration of 300ms.\n\t$.scrollTo(element, 300);\n\t//OR\n\t$(element).scrollTo(300);\n\t\n\t\n\t//Without animation\n\t$.scrollTo(element, 0);\n\t//OR\n\t$.scrollTo(element, false);\n\t//OR\n\t$(element).scrollTo(0);\n\t//OR\n\t$(element).scrollTo(false);\n\t\n\t\n\t//With a specific offset and the default duration. E.g. if you have an header with a height of 200px.\n\t$.scrollTo(element, null, 200);\n\t//OR\n\t$(element).scrollTo(null, 200);\n\t\n### Calling a function after the scrolling has finished.\n\n\t$.scrollToPixel(400).done(function(){\n\t\t//Do something . . .\n\t});\n\t\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fb13%2Fb_scrollto","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fb13%2Fb_scrollto","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fb13%2Fb_scrollto/lists"}