{"id":26722920,"url":"https://github.com/useallfive/drizzle-react-reveal-animations","last_synced_at":"2025-08-11T00:52:15.225Z","repository":{"id":41633889,"uuid":"245313096","full_name":"UseAllFive/drizzle-react-reveal-animations","owner":"UseAllFive","description":null,"archived":false,"fork":false,"pushed_at":"2023-01-06T04:28:01.000Z","size":1193,"stargazers_count":0,"open_issues_count":25,"forks_count":0,"subscribers_count":10,"default_branch":"master","last_synced_at":"2025-07-05T16:19:17.605Z","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/UseAllFive.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":"2020-03-06T02:31:27.000Z","updated_at":"2020-10-09T22:23:12.000Z","dependencies_parsed_at":"2023-02-05T07:31:48.694Z","dependency_job_id":null,"html_url":"https://github.com/UseAllFive/drizzle-react-reveal-animations","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/UseAllFive/drizzle-react-reveal-animations","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UseAllFive%2Fdrizzle-react-reveal-animations","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UseAllFive%2Fdrizzle-react-reveal-animations/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UseAllFive%2Fdrizzle-react-reveal-animations/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UseAllFive%2Fdrizzle-react-reveal-animations/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/UseAllFive","download_url":"https://codeload.github.com/UseAllFive/drizzle-react-reveal-animations/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UseAllFive%2Fdrizzle-react-reveal-animations/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268348690,"owners_count":24236302,"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","status":"online","status_checked_at":"2025-08-02T02:00:12.353Z","response_time":74,"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":[],"created_at":"2025-03-27T20:38:17.936Z","updated_at":"2025-08-02T07:37:33.507Z","avatar_url":"https://github.com/UseAllFive.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# react-drizzle\n\n\u003e A react library to help sequence reveal animations on scroll.\n\n[![NPM](https://img.shields.io/npm/v/react-drizzle.svg)](https://www.npmjs.com/package/react-drizzle) [![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)\n\n![Drizzle](https://media1.tenor.com/images/b9a01bfaa8c4efafe27e52a1af7444bc/tenor.gif)\n\n## Install\n\n```bash\nnpm install --save react-drizzle\n```\n\nRequires Peer Dependency: gsap\n\n```\nnpm install --save gsap\n```\n\n## Usage\n\n```jsx\nimport React, { Component } from 'react'\n\nimport Drizzle, { DrizzleSettings } from 'react-drizzle'\n\nclass Example extends Component {\n  render() {\n    return (\n      \u003cDrizzleSettings speed={2}\u003e\n        \u003cDrizzle type=\"text\" group=\"my-group-namespace\"\u003e\n          \u003ch1\u003e\n            Text you\u003cbr\u003e\u003c/br\u003e want to\u003cbr\u003e\u003c/br\u003eAnimate\n          \u003c/h1\u003e\n        \u003c/Drizzle\u003e\n\n        \u003cDrizzle type=\"fade-up\" group=\"my-group-namespace\"\u003e\n          {/* it will wait to load image before revealing the group */}\n          \u003cimg\n            width=\"130\"\n            height=\"auto\"\n            src=\"https://images.unsplash.com/photo-1532264523420-881a47db012d?ixlib=rb-1.2.1\u0026ixid=eyJhcHBfaWQiOjEyMDd9\u0026auto=format\u0026fit=crop\u0026w=500\u0026q=100\"\n          \u003e\u003c/img\u003e\n        \u003c/Drizzle\u003e\n\n        \u003cDrizzle type=\"fade-up\" group=\"second-group\"\u003e\n          \u003cimg\n            width=\"130\"\n            height=\"auto\"\n            src=\"https://images.unsplash.com/photo-1532264523420-881a47db012d?ixlib=rb-1.2.1\u0026ixid=eyJhcHBfaWQiOjEyMDd9\u0026auto=format\u0026fit=crop\u0026w=500\u0026q=100\"\n          \u003e\u003c/img\u003e\n        \u003c/Drizzle\u003e\n      \u003c/DrizzleSettings\u003e\n    )\n  }\n}\n```\n\n### Attributes\n\n#### `\u003cDrizzle\u003e`\n\n- `type`: `fade` or `text`. Can take a direction:\n  - `-up`, `-down`, `-left`, `-right`, ex: `type=\"fade-down\"`\n- `order`: Number - if this isn't set, it picks the order based off creation order. Elements with an order set always rank higher than elements without an order. The plugin sets a calculated order — for example, if two elements have the order 1, 5, 7, the calculated orders get set to 0, 1, 2.\n- `speed`: Number in seconds (default: 1) - the time it takes for a single Drizzle element to appear. This is multiplied by its calculated order.\n- `delay`: Number in seconds (default: 0) - the amount of time to wait to reveal the item, after it is ready to reveal.\n- `distance`: Number - pixel distance (default: 25). Used for movement, such as a `fade-up`\n- `onAppear`: Function - callback that triggers when the item is ready to reveal, e.g. when the item moves into view.\n- `visibilityRootMargin` String or Number - (default: 0) Margin around the root. See [Intersection Observer API\n  ](https://developer.mozilla.org/en-US/docs/Web/API/Intersection_Observer_API#Intersection_observer_concepts_and_usage)\n- `visibilityThreshold` Array or Number - (default: 0.3) Indicates at what percentage of the target's visibility the observer's callback should be executed [Intersection Observer API](https://developer.mozilla.org/en-US/docs/Web/API/Intersection_Observer_API#Intersection_observer_concepts_and_usage)\n- `containerSx`: Extend sx props to the container element\n- `containerStyle`: Extend style props to the container element\n- `sx`: Extend sx props to the underlying animation element\n- `style`: Extend style props to the underlying animation element\n\n#### `\u003cDrizzleSettings\u003e` - global settings applied to all child `\u003cDrizzle\u003e` elements\n\n- Can set defaults for `speed`, `delay`, `distance`, `visibilityRootMargin`, `visibilityThreshold`.\n- `staggerSpeed`: Number in seconds (default: 0.1) - the time to wait between revealing Drizzle items within the group.\n- `ease`: String (default: 'Power2.easeOut') - a GSAP tween. ex: `ease={'elastic.out(1, 0.3)'}`\n  - [GSAP Ease Visualizer](https://greensock.com/ease-visualizer/)\n- `waitForChildImages`: Boolean (default: true) - doesn't reveal group until images in the group are loaded.\n- `textLineStaggerSpeed`: Number in seconds (default: 0.1) - for `type=\"text\"`; the time to wait between revealing lines of text.\n\n#### Order of operations:\n\nDrizzle is on screen, wait for staggerSpeed, wait for delay speed, then display its children.\n\n## License\n\nMIT © [UseAllFive](https://github.com/UseAllFive)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fuseallfive%2Fdrizzle-react-reveal-animations","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fuseallfive%2Fdrizzle-react-reveal-animations","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fuseallfive%2Fdrizzle-react-reveal-animations/lists"}