{"id":22846509,"url":"https://github.com/jsonkao/svelte-scrollama","last_synced_at":"2025-03-31T05:41:16.413Z","repository":{"id":211460606,"uuid":"729209515","full_name":"jsonkao/svelte-scrollama","owner":"jsonkao","description":"Lol","archived":false,"fork":false,"pushed_at":"2024-01-15T19:26:34.000Z","size":6,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-06T10:15:16.595Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Svelte","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/jsonkao.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-12-08T16:36:20.000Z","updated_at":"2024-10-26T19:48:45.000Z","dependencies_parsed_at":"2023-12-20T10:44:42.360Z","dependency_job_id":"644a39ee-4efa-433c-bb43-e6752323fa0d","html_url":"https://github.com/jsonkao/svelte-scrollama","commit_stats":null,"previous_names":["jsonkao/svelte-scrollama"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jsonkao%2Fsvelte-scrollama","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jsonkao%2Fsvelte-scrollama/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jsonkao%2Fsvelte-scrollama/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jsonkao%2Fsvelte-scrollama/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jsonkao","download_url":"https://codeload.github.com/jsonkao/svelte-scrollama/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246423494,"owners_count":20774796,"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-12-13T03:29:22.958Z","updated_at":"2025-03-31T05:41:16.393Z","avatar_url":"https://github.com/jsonkao.png","language":"Svelte","funding_links":[],"categories":[],"sub_categories":[],"readme":"Continuing the [Scrollama](https://github.com/russellsamora/scrollama) [legacy](https://github.com/jsonkao/react-scrollama). An alternative to [svelte-scroller](https://github.com/sveltejs/svelte-scroller) that bypasses scroll event listeners and uses `position: sticky`.\n\n## Usage\n\nImport the `Stepper.svelte` component. Then, use like so:\n\n```svelte\n\u003cStepper {onStepEnter} {onStepExit}\u003e\n    {#each paragraphs as text, index}\n        \u003csection data-index={index}\u003e{text}\u003c/section\u003e\n    {/each}\n\u003c/Stepper\u003e\n```\n\n## Props\n\n```js\nexport let query = 'section'; // The DOM nodes to look for inside the stepper\nexport let attribute = 'data-index'; // Hacky way to track the index. Should be improved\nexport let offset = 0.5; // Offset\nexport let onStepEnter = (i: number, direction: string) =\u003e {}; // Step enter callback\nexport let onStepExit = (i: number, direction: string) =\u003e {}; // Step exit callback\nexport let debug = false; // Whether to console.log step enters and exits\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjsonkao%2Fsvelte-scrollama","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjsonkao%2Fsvelte-scrollama","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjsonkao%2Fsvelte-scrollama/lists"}