{"id":22882558,"url":"https://github.com/nxroot/react-mega-scroll","last_synced_at":"2025-05-07T04:48:47.422Z","repository":{"id":253502111,"uuid":"843710747","full_name":"NxRoot/react-mega-scroll","owner":"NxRoot","description":"React full page scrolling","archived":false,"fork":false,"pushed_at":"2025-01-08T12:43:40.000Z","size":44,"stargazers_count":4,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-31T06:32:00.361Z","etag":null,"topics":["react","scroll","typescript"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/react-mega-scroll","language":"TypeScript","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/NxRoot.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":"2024-08-17T07:20:14.000Z","updated_at":"2025-03-11T07:10:02.000Z","dependencies_parsed_at":"2024-08-17T08:15:43.894Z","dependency_job_id":"db34c0f6-8cde-4653-b1dc-e903095c8a2c","html_url":"https://github.com/NxRoot/react-mega-scroll","commit_stats":null,"previous_names":["nxroot/react-mega-scroll"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NxRoot%2Freact-mega-scroll","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NxRoot%2Freact-mega-scroll/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NxRoot%2Freact-mega-scroll/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NxRoot%2Freact-mega-scroll/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NxRoot","download_url":"https://codeload.github.com/NxRoot/react-mega-scroll/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252624494,"owners_count":21778288,"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":["react","scroll","typescript"],"created_at":"2024-12-13T18:18:21.339Z","updated_at":"2025-05-07T04:48:47.387Z","avatar_url":"https://github.com/NxRoot.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# React Mega Scroll\n\nThis is a react component to provide full page scrolling.\n\n\u003cimg width=\"100%\" src=\"https://i.ibb.co/zxYxtJ3/Screen-Recording2024-08-17at08-42-16-ezgif-com-optimize-2.gif\"/\u003e\n\n## Demo\n[![Edit react-mega-scroll](https://codesandbox.io/static/img/play-codesandbox.svg)](https://77t7mc.csb.app/)\n\n## Install\n```sh\nnpm i react-mega-scroll\n```\n\n## Usage\n```ts\nimport MegaScroll from 'react-mega-scroll';\n\nfunction App() {\n  return (\n    \u003cMegaScroll\u003e\n      // add pages to render here\n    \u003c/MegaScroll\u003e\n  )\n}\n\nexport default App\n```\n\n## Example\n```ts\nimport React, { useState } from \"react\";\nimport MegaScroll from \"react-mega-scroll\";\n\nconst styles: React.CSSProperties = {\n  display: \"flex\",\n  flexDirection: \"column\",\n  justifyContent: \"center\",\n  alignItems: \"center\",\n  fontSize: \"60px\",\n  textAlign: \"center\",\n  color: \"white\",\n};\n\nfunction App() {\n  const [active, setActive] = useState(0);\n\n  return (\n    \u003cMegaScroll onChange={setActive}\u003e\n      \u003cdiv style={{ ...styles, background: \"#111\" }}\u003ereact-mega-scroll\u003c/div\u003e\n      \u003cdiv style={{ ...styles, background: \"#222\" }}\u003eSmooth Scrolling\u003c/div\u003e\n      \u003cdiv style={{ ...styles, background: \"#333\" }}\u003eKeyboard Support\u003c/div\u003e\n      \u003cdiv style={{ ...styles, background: \"#222\" }}\u003eState Listeners\u003c/div\u003e\n      \u003cdiv style={{ ...styles, background: \"#111\" }}\u003eFree Forever\u003c/div\u003e\n    \u003c/MegaScroll\u003e\n  );\n}\n\nexport default App;\n```\n\n## Props \u003cMegaScroll/\u003e\n\n\u003ctable\u003e\n  \u003ctr\u003e\n    \u003cth\u003ename\u003c/th\u003e\n    \u003cth\u003etype\u003c/th\u003e\n    \u003cth\u003ecurrent value\u003c/th\u003e\n    \u003cth\u003edescription\u003c/th\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003ctd\u003e\u003ccode\u003echildren\u003c/code\u003e\u003c/td\u003e\n    \u003ctd\u003e\u003ca href=\"https://github.com/NxRoot/react-mega-scroll#children\"\u003eany\u003c/a\u003e\u003c/td\u003e\n    \u003ctd\u003e\u003c/td\u003e\n    \u003ctd\u003eElements inside this component\u003c/td\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003ctd\u003e\u003ccode\u003eonChange\u003c/code\u003e\u003c/td\u003e\n    \u003ctd\u003e\u003ca href=\"https://github.com/NxRoot/react-mega-scroll#onChange\"\u003efunction\u003c/a\u003e\u003c/td\u003e\n    \u003ctd\u003e\u003c/td\u003e\n    \u003ctd\u003eEvent called when page changes\u003c/td\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003ctd\u003e\u003ccode\u003enoFocus\u003c/code\u003e\u003c/td\u003e\n    \u003ctd\u003e\u003ca href=\"https://github.com/NxRoot/react-mega-scroll#noFocus\"\u003eboolean\u003c/a\u003e\u003c/td\u003e\n    \u003ctd\u003efalse\u003c/td\u003e\n    \u003ctd\u003ePrevent auto focus at first render\u003c/td\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003ctd\u003e\u003ccode\u003ethreshold\u003c/code\u003e\u003c/td\u003e\n    \u003ctd\u003e\u003ca href=\"https://github.com/NxRoot/react-mega-scroll#threshold\"\u003enumber\u003c/a\u003e\u003c/td\u003e\n    \u003ctd\u003e0.5\u003c/td\u003e\n    \u003ctd\u003eDebounce time between states\u003c/td\u003e\n  \u003c/tr\u003e\n\u003c/table\u003e\n\n\u003cbr/\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnxroot%2Freact-mega-scroll","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnxroot%2Freact-mega-scroll","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnxroot%2Freact-mega-scroll/lists"}