{"id":13422384,"url":"https://github.com/jeroencoumans/react-scroll-components","last_synced_at":"2025-05-13T12:58:02.390Z","repository":{"id":16454636,"uuid":"19206545","full_name":"jeroencoumans/react-scroll-components","owner":"jeroencoumans","description":"A set of components that react to page scrolling","archived":false,"fork":false,"pushed_at":"2016-09-14T23:49:58.000Z","size":260,"stargazers_count":123,"open_issues_count":4,"forks_count":17,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-05-10T01:36:44.507Z","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/jeroencoumans.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":"2014-04-27T14:31:55.000Z","updated_at":"2024-08-18T11:51:20.000Z","dependencies_parsed_at":"2022-09-19T08:40:43.319Z","dependency_job_id":null,"html_url":"https://github.com/jeroencoumans/react-scroll-components","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jeroencoumans%2Freact-scroll-components","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jeroencoumans%2Freact-scroll-components/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jeroencoumans%2Freact-scroll-components/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jeroencoumans%2Freact-scroll-components/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jeroencoumans","download_url":"https://codeload.github.com/jeroencoumans/react-scroll-components/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253948379,"owners_count":21988953,"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-07-30T23:00:43.388Z","updated_at":"2025-05-13T12:58:02.365Z","avatar_url":"https://github.com/jeroencoumans.png","language":"JavaScript","funding_links":[],"categories":["UI Utilities","Uncategorized","Awesome React","UI Components","UI Utilites"],"sub_categories":["Device Input","Uncategorized","Tools","Device Input/User Action"],"readme":"react-scroll-components\n=======================\n\nA set of components and mixins that react to page scrolling\n\n## ScrollListenerMixin\n\nThis mixin provides the following states:\n* `scrollTop`, which represents the documents' current scroll position\n* `isScrolling`, wether the user is currently scrolling the document\n\nYou can pass the following methods to your React class:\n* `onPageScroll`: fired when the document is scrolling. This function gets the\ncurrent scroll position passed as argument.\n* `onPageScrollEnd`: fired when the document's scroll position hasn't changed for\n300 milliseconds. This function also gets the current scroll position passed as\nargument. If you want to change the timeout, override your components'\n`endScrollTimeout`\n\n## ScrollBlocker\n\nA very simple component that allows you to block any mouse events during\nscrolling.\n\n## Example\n\n```javascript\nvar MyComponent = React.createClass({\n\tmixins: [ScrollListenerMixin],\n\trender: function () {\n\t\treturn (\n\t\t\t\u003cScrollBlocker active={this.state.isScrolling}\u003e\n\t\t\t\tThe current scroll position is {this.state.scrollTop}.\u003cbr /\u003e\n\t\t\t\tThe document is currently {this.state.isScrolling ? '' : 'not'} scrolling.\n\t\t\t\u003c/ScrollBlocker\u003e\n\t\t)\n\t}\n})\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjeroencoumans%2Freact-scroll-components","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjeroencoumans%2Freact-scroll-components","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjeroencoumans%2Freact-scroll-components/lists"}