{"id":18887674,"url":"https://github.com/bramus/sda-utilities","last_synced_at":"2025-04-14T22:34:07.231Z","repository":{"id":198554755,"uuid":"701058025","full_name":"bramus/sda-utilities","owner":"bramus","description":"Collection of utility functions for use with Scroll-Driven Animations","archived":false,"fork":false,"pushed_at":"2024-11-28T18:25:20.000Z","size":17,"stargazers_count":34,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-03-23T05:17:03.210Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://npmjs.com/@bramus/sda-utilities","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/bramus.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":"2023-10-05T20:31:18.000Z","updated_at":"2025-02-15T20:35:38.000Z","dependencies_parsed_at":null,"dependency_job_id":"b088990c-21ca-4d33-8fa1-c297d0ad4dbf","html_url":"https://github.com/bramus/sda-utilities","commit_stats":null,"previous_names":["bramus/sda-utilities"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bramus%2Fsda-utilities","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bramus%2Fsda-utilities/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bramus%2Fsda-utilities/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bramus%2Fsda-utilities/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bramus","download_url":"https://codeload.github.com/bramus/sda-utilities/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248973341,"owners_count":21191948,"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-08T07:38:54.927Z","updated_at":"2025-04-14T22:34:02.168Z","avatar_url":"https://github.com/bramus.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Scroll-Driven Animations Utilities\n\nCollection of utility functions for use with Scroll-Driven Animations\n\n## Installation\n\n```bash\nnpm i @bramus/sda-utilities\n```\n\n## The Utilities\n\n### `runOnce` – Run Scroll-Driven Animation only once\n\nExample: run the `fade-in` animation on the `.hero` element only once.\n\n```js\nimport { runOnce } from '@bramus/sda-utilities';\n\nwindow.addEventListener('load', (e) =\u003e {\n\tconst $hero = document.querySelector('#hero');\n\trunOnce($hero, 'fade-in');\n});\n```\n\n### `trackProgress` – Sync the progress of an effect to something external\n\nExample: output the animation progress as text on the page.\n\n```js\nimport { trackProgress } from '@bramus/sda-utilities';\n\nwindow.addEventListener('load', (e) =\u003e {\n\ttrackProgress(document.querySelector('.animation-subject').getAnimations()[0], (progress) =\u003e {\n\t\tdocument.querySelector('.animation-subject').innerText = `${(progress * 100).toFixed(5)}%`;\n\t});\n});\n```\n\n## Demos\n\nDemos are included in this repository. Run `npm run dev` and visit `http://127.0.0.1:8000/` to see the demos.\n\n```bash\nnpm run dev\n```\n\n## License\n\n`@bramus/sda-utilities` is released under the MIT public license. See the enclosed `LICENSE` for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbramus%2Fsda-utilities","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbramus%2Fsda-utilities","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbramus%2Fsda-utilities/lists"}