{"id":13605929,"url":"https://github.com/giladk/react-scroll-rotate","last_synced_at":"2025-04-12T05:35:13.822Z","repository":{"id":71445206,"uuid":"195117626","full_name":"giladk/react-scroll-rotate","owner":"giladk","description":"Very simple react component for rotate element based on scroll position","archived":false,"fork":false,"pushed_at":"2022-08-18T01:01:47.000Z","size":292,"stargazers_count":8,"open_issues_count":2,"forks_count":3,"subscribers_count":0,"default_branch":"master","last_synced_at":"2024-08-02T19:38:48.653Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://giladk.github.io/react-scroll-rotate/","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/giladk.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}},"created_at":"2019-07-03T19:47:58.000Z","updated_at":"2023-12-18T17:18:39.000Z","dependencies_parsed_at":null,"dependency_job_id":"fc54154b-3345-4c47-afb7-e22c8cf1c65b","html_url":"https://github.com/giladk/react-scroll-rotate","commit_stats":{"total_commits":9,"total_committers":1,"mean_commits":9.0,"dds":0.0,"last_synced_commit":"37f9f01162bccbc181195b133fffa4ed75f93a31"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/giladk%2Freact-scroll-rotate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/giladk%2Freact-scroll-rotate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/giladk%2Freact-scroll-rotate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/giladk%2Freact-scroll-rotate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/giladk","download_url":"https://codeload.github.com/giladk/react-scroll-rotate/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223498113,"owners_count":17155264,"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-08-01T19:01:04.393Z","updated_at":"2024-11-07T10:31:34.290Z","avatar_url":"https://github.com/giladk.png","language":"JavaScript","funding_links":[],"categories":["UI Animation"],"sub_categories":["Form Components"],"readme":"# react-scroll-rotate ([demo](https://giladk.github.io/react-scroll-rotate/))\nVery simple react component for rotate element based on scroll position\n\n[![NPM](https://img.shields.io/npm/v/react-scroll-rotate.svg)](https://www.npmjs.com/package/react-scroll-rotate)\n\n## Install\n\n```bash\nnpm install --save react-scroll-rotate\n```\n\n## Usage\n\n```jsx\nimport React, { Component } from 'react';\nimport  { ScrollRotate } from 'react-scroll-rotate';\n\nfunction MyTitleComp(props) {\n    return (\u003cMyTitleWrapper\u003e\n        Hello \u003cScrollRotate\u003e\u003cspan\u003eworld\u003c/span\u003e\u003c/ScrollRotate\u003e\n    \u003c/MyTitleWrapper\u003e)\n}\n```\n\n## Props\n\n| Property      | Type               | Default                               | Description                                                                                                                                  |\n|:--------------|:-------------------|:--------------------------------------|:---------------------------------------------------------------------------------------------------------------------------------------------|\n| `target`  | string | null | Target element id. By default it will use window scroll |\n| `throttle`  | number           | null                                  | Use 'throttle' prop to invoke the update once in X seconds |\n| `from`  | number           | 0                         | Rotation start point  |\n| `to`  | number           | 360                                  | Rotation end point |\n| `method`  | string           | 'px'                         | Use 'perc' to change rotation based on scroll percantges. |\n| `loops`  | number           | 1                                  | When using method 'perc', define how many loops component will do while scrolling to bottom |\n| `animationDuration`  | number           | 0.1                                  | Animation duration  |\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgiladk%2Freact-scroll-rotate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgiladk%2Freact-scroll-rotate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgiladk%2Freact-scroll-rotate/lists"}