{"id":16530769,"url":"https://github.com/hellohejinyu/react-blocks-scroll-sync","last_synced_at":"2026-05-01T22:35:24.807Z","repository":{"id":114459135,"uuid":"121191750","full_name":"hellohejinyu/react-blocks-scroll-sync","owner":"hellohejinyu","description":"Synchronously scrolling multiple blocks.","archived":false,"fork":false,"pushed_at":"2020-03-05T08:41:11.000Z","size":201,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-09-23T20:39:31.488Z","etag":null,"topics":["react","scroll","scrollsync","sync"],"latest_commit_sha":null,"homepage":"","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/hellohejinyu.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":"2018-02-12T02:45:20.000Z","updated_at":"2021-02-15T13:42:00.000Z","dependencies_parsed_at":"2023-06-08T02:30:23.386Z","dependency_job_id":null,"html_url":"https://github.com/hellohejinyu/react-blocks-scroll-sync","commit_stats":null,"previous_names":["elowes/react-blocks-scroll-sync"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/hellohejinyu/react-blocks-scroll-sync","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hellohejinyu%2Freact-blocks-scroll-sync","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hellohejinyu%2Freact-blocks-scroll-sync/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hellohejinyu%2Freact-blocks-scroll-sync/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hellohejinyu%2Freact-blocks-scroll-sync/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hellohejinyu","download_url":"https://codeload.github.com/hellohejinyu/react-blocks-scroll-sync/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hellohejinyu%2Freact-blocks-scroll-sync/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32515838,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-30T13:12:12.517Z","status":"online","status_checked_at":"2026-05-01T02:00:05.856Z","response_time":64,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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","scrollsync","sync"],"created_at":"2024-10-11T18:07:09.130Z","updated_at":"2026-05-01T22:35:24.777Z","avatar_url":"https://github.com/hellohejinyu.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# react-blocks-scroll-sync \u0026middot; [![npm](https://img.shields.io/npm/v/react-blocks-scroll-sync.svg)](https://www.npmjs.com/package/react-blocks-scroll-sync)\n\n\nSynchronously scrolling multiple blocks.\n\n## Install\n\n``` shell\nnpm i --save react-blocks-scroll-sync\n```\n\n## Quick Overview\n``` jsx\nimport React, { useCallback } from 'react'\nimport Container from 'react-blocks-scroll-sync'\n\nconst Block = Container.Block\n\nconst randomColor = () =\u003e {\n  const r = Math.floor(Math.random() * 256)\n  const g = Math.floor(Math.random() * 256)\n  const b = Math.floor(Math.random() * 256)\n  const color = `rgb(${r},${g},${b})`\n  return color\n}\n\nconst App = () =\u003e {\n  const renderMultiBox = useCallback(() =\u003e {\n    return new Array(100).fill(1).map((v, k) =\u003e {\n      return (\n        \u003cdiv\n          key={k}\n          style={{\n            width: 200,\n            backgroundColor: randomColor(),\n            height: Math.floor(Math.random() * 300) + 200\n          }}\n        \u003e\n          {k}\n        \u003c/div\u003e\n      )\n    })\n  }, [])\n\n  return (\n    \u003cdiv style={{ display: 'flex' }}\u003e\n      \u003cContainer\u003e\n        \u003cBlock\u003e{renderMultiBox()}\u003c/Block\u003e\n        \u003cBlock\u003e{renderMultiBox()}\u003c/Block\u003e\n        \u003cBlock\u003e{renderMultiBox()}\u003c/Block\u003e\n      \u003c/Container\u003e\n    \u003c/div\u003e\n  )\n}\n\nexport default App\n```\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"./docs/images/example1.gif\" style=\"border-radius: 5px; box-shadow: 0 0 10px rgba(0, 0, 0, .2)\" /\u003e\n\u003c/p\u003e\n\n## Tips\n\n⚠️ The number of child elements of each `\u003cBlock /\u003e` component need to be same.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhellohejinyu%2Freact-blocks-scroll-sync","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhellohejinyu%2Freact-blocks-scroll-sync","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhellohejinyu%2Freact-blocks-scroll-sync/lists"}