{"id":18733148,"url":"https://github.com/bioforestchain/scroll-snap","last_synced_at":"2025-10-15T18:32:49.260Z","repository":{"id":65792482,"uuid":"407431122","full_name":"BioforestChain/scroll-snap","owner":"BioforestChain","description":"the layout chang event will be emited when you use the scroll snap","archived":false,"fork":false,"pushed_at":"2021-11-29T11:30:18.000Z","size":34,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-19T23:43:21.493Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/BioforestChain.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}},"created_at":"2021-09-17T06:28:30.000Z","updated_at":"2021-11-29T11:30:20.000Z","dependencies_parsed_at":"2023-02-10T10:30:33.907Z","dependency_job_id":null,"html_url":"https://github.com/BioforestChain/scroll-snap","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/BioforestChain/scroll-snap","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BioforestChain%2Fscroll-snap","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BioforestChain%2Fscroll-snap/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BioforestChain%2Fscroll-snap/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BioforestChain%2Fscroll-snap/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BioforestChain","download_url":"https://codeload.github.com/BioforestChain/scroll-snap/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BioforestChain%2Fscroll-snap/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259382304,"owners_count":22848837,"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-07T15:08:52.278Z","updated_at":"2025-10-15T18:32:44.220Z","avatar_url":"https://github.com/BioforestChain.png","language":"TypeScript","readme":"# scroll-Snap - WebComponent\nthe layout chang event will be emited when you use the scroll snap\n\n## Background\n\nWhen I discovered that CSS scroll-snap was used, there were no event callbacks when layout were changed. This specification started as a result of that.\n\n\n## Install\n\nThis project uses [npm](https://npmjs.com). Go check them out if you don't have them locally installed.\n\n```sh\n$ npm install @bfchain/scroll-snap --save\n```\n\n## Usage\n\n```sh\n\u003cscroll-snap onlayoutchange=\"layoutChange(event,this)\"\u003e\n    \u003cdiv name=\"scroll-container\"\u003e\n        \u003cdiv class=\"slide slide1\"\u003e\u003c/div\u003e\n        \u003cdiv class=\"slide slide2\"\u003e\u003c/div\u003e\n    \u003c/div\u003e\n\u003c/scroll-snap\u003e\n\n# Remember add attribute`name=\"scroll-container\"` to the element when you use it.\n```\n\n## Example Readmes\n```sh\n\u003cscroll-snap onlayoutchange=\"layoutChange(event,this)\"\u003e\n    \u003cstyle\u003e\n        .slides {\n            width: 200px;\n            height: 300px;\n            overflow: scroll hidden;\n            scroll-snap-type: x mandatory;\n            display: flex;\n        }\n        .slide {\n            height: 100%;\n            scroll-snap-align: center;\n            scroll-snap-stop: always;\n            flex: none;\n        }\n        .slide1 {\n            width: 100%;\n            background-color: blanchedalmond;\n        }\n        .slide2 {\n            width: 50px;\n            background-color: aqua;\n        }\n    \u003c/style\u003e\n    \u003cdiv class=\"slides\" name=\"scroll-container\"\u003e\n        \u003cdiv class=\"slide slide1\"\u003e\u003c/div\u003e\n        \u003cdiv class=\"slide slide2\"\u003e\u003c/div\u003e\n    \u003c/div\u003e\n\u003c/scroll-snap\u003e\n```\n## Maintainers\n\n[@Huiyong-Chen](https://github.com/Huiyong-Chen)。\n\n## License\n\n[MIT](LICENSE) © Huiyong Chen\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbioforestchain%2Fscroll-snap","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbioforestchain%2Fscroll-snap","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbioforestchain%2Fscroll-snap/lists"}