{"id":17275091,"url":"https://github.com/gmrchk/scrl","last_synced_at":"2025-04-14T09:11:35.007Z","repository":{"id":52276451,"uuid":"172603401","full_name":"gmrchk/scrl","owner":"gmrchk","description":"Page acceleration based scroll animation.","archived":false,"fork":false,"pushed_at":"2023-08-09T12:02:23.000Z","size":155,"stargazers_count":4,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-27T22:36:59.259Z","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/gmrchk.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2019-02-25T23:41:49.000Z","updated_at":"2023-01-18T11:27:11.000Z","dependencies_parsed_at":"2024-06-18T22:37:17.876Z","dependency_job_id":"b36490ec-ff6d-4f0d-9164-e4b463baceca","html_url":"https://github.com/gmrchk/scrl","commit_stats":{"total_commits":3,"total_committers":2,"mean_commits":1.5,"dds":"0.33333333333333337","last_synced_commit":"a8d5bb97b11e21f4e82d1940f542b2932f554eee"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gmrchk%2Fscrl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gmrchk%2Fscrl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gmrchk%2Fscrl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gmrchk%2Fscrl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gmrchk","download_url":"https://codeload.github.com/gmrchk/scrl/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248852181,"owners_count":21171842,"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-10-15T08:55:23.880Z","updated_at":"2025-04-14T09:11:34.982Z","avatar_url":"https://github.com/gmrchk.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Scrl\n**Page acceleration based scroll animation.** (extracted swup scroll)\n* Makes scroll animation smooth but quick.\n* Takes care of special cases like scrolling to the bottom of the page instead of suddenly stopping.\n* Stops scrolling when mouse wheel is used to avoid jaggy page.\n* Provides handlers different events. \n\n\n## Usage\nCreate instance...\n```javascript\nimport Scrl from 'scrl';\nvar scrl = new Scrl();\n```\nand use it.\n```javascript\nscrl.scrollTo(offset);  // offset can be a number of pixel, or an element on the page\n```\n\n## Options\nScrl accepts several options:\n```javascript\nconst defaults = {\n    onAlreadyAtPositions: () =\u003e {}, // handler called when link leads to the offset page is already at\n    onCancel: () =\u003e {},             // handler called on cancel of animation by mouse scroll\n    onEnd: () =\u003e {},                // handler called on end of animation\n    onStart: () =\u003e {},              // handler called on start of animation\n    onTick: () =\u003e {},               // handler called on every step of animation\n    friction: .3,                   // friction of scroll animation    \n    acceleration: .04,              // acceleration of scroll animation\n}\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgmrchk%2Fscrl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgmrchk%2Fscrl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgmrchk%2Fscrl/lists"}