{"id":28279253,"url":"https://github.com/delpikye-v/react-animate","last_synced_at":"2026-02-21T10:01:15.910Z","repository":{"id":163658925,"uuid":"637972883","full_name":"delpikye-v/react-animate","owner":"delpikye-v","description":"Lightweight React animation library with Animate and AnimateTyping components, built using styled-components.","archived":false,"fork":false,"pushed_at":"2026-02-05T19:35:30.000Z","size":188,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-02-06T05:04:44.676Z","etag":null,"topics":["animate","animation","react-animate","react-animations","simple-animation","smooth-animation"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/react-animate-z","language":null,"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/delpikye-v.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,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2023-05-08T20:07:07.000Z","updated_at":"2026-02-05T19:36:03.000Z","dependencies_parsed_at":null,"dependency_job_id":"c81f0d03-4075-4bec-9347-4062eaf0cdbe","html_url":"https://github.com/delpikye-v/react-animate","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/delpikye-v/react-animate","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/delpikye-v%2Freact-animate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/delpikye-v%2Freact-animate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/delpikye-v%2Freact-animate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/delpikye-v%2Freact-animate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/delpikye-v","download_url":"https://codeload.github.com/delpikye-v/react-animate/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/delpikye-v%2Freact-animate/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29679049,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-21T09:33:50.764Z","status":"ssl_error","status_checked_at":"2026-02-21T09:33:19.949Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["animate","animation","react-animate","react-animations","simple-animation","smooth-animation"],"created_at":"2025-05-21T09:14:16.865Z","updated_at":"2026-02-21T10:01:15.894Z","avatar_url":"https://github.com/delpikye-v.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# 🎞️ react-animate-z\n\n[![NPM](https://img.shields.io/npm/v/react-animate-z.svg)](https://www.npmjs.com/package/react-animate-z) ![Downloads](https://img.shields.io/npm/dt/react-animate-z.svg)\n\n\u003ca href=\"https://codesandbox.io/p/devbox/lively-night-lrjs4s\" target=\"_blank\"\u003eLIVE EXAMPLE\u003c/a\u003e\n\n\nA lightweight, UX-first animation library for React.\n\n**react-animate-z** provides a clean imperative + declarative API to orchestrate animations\n\n---\n\n## ✨ Why react-animate-z\n\n- 🚀 180+ prebuilt animations\n- 🧠 Semantic UX states (loading / success / error)\n- ⛓️ Timeline API (sequence, parallel, wait)\n- 🎯 Ref-based animation (no wrapper required)\n- 🎲 Random \u0026 playful animation hooks\n- ♿ Reduced-motion safe\n- 🧩 Fully typed with TypeScript\n\n---\n\n## 📦 Installation\n\n```bash\nnpm install react-animate-z\n# or\nyarn add react-animate-z\n```\n\n---\n\n## 🚀 Basic Usage (Declarative)\n\n```tsx\nimport Animate from \"react-animate-z\";\n\nexport default function App() {\n  return (\n    \u003cAnimate type=\"bounce\" duration=\"1s\"\u003e\n      \u003ch1\u003eHello Animation\u003c/h1\u003e\n    \u003c/Animate\u003e\n  );\n}\n```\n\n## 🎛️ Animation Catalog\n```ts\nimport { animNames, animGroups } from \"react-animate-z\";\n\nconsole.log(animNames);   // all animation names\nconsole.log(animGroups); // grouped by category\n\n```\n\n---\n\n## 🔧 `Animate` Props\n\n| Prop        | Type                   | Default     | Description         |\n|-------------|------------------------|-------------|---------------------|\n| `type`      | `AnimateType`          | `blurIn`    | Animation name      |\n| `duration`  | `string \\| number`     | preset map  | `'1s'` or `1000`    |\n| `timing`    | `TimingKey`            | `ease`      | CSS timing function |\n| `delay`     | `string \\| number`     | `0s`        | Delay before start  |\n| `iteration` | `number \\| \"infinite\"` | `1`         | Repeat count        |\n| `direction` | `string`               | `normal`    | Animation direction |\n| `fillMode`  | `string`               | `forwards`  | CSS fill-mode       |\n| `tagName`   | `string`               | `div`       | Rendered HTML tag   |\n\n---\n\n## 🎯 Ref-based Animation (Imperative)\n\n```tsx\nimport { useAnimate } from \"react-animate-z\";\n\nfunction Box() {\n  const { ref, play } = useAnimate\u003cHTMLDivElement\u003e();\n\n  return (\n    \u003cdiv ref={ref} onClick={() =\u003e play(\"pulse\")}\u003e\n      Click me\n    \u003c/div\u003e\n  );\n}\n```\n\n---\n\n## ⛓️ Timeline API\n\nCompose animations as clear motion flows, not nested callbacks.\n\n```tsx\nimport { useAnimate } from \"react-animate-z\";\nimport { useEffect } from \"react\";\n\nfunction Example() {\n  const { ref, sequence } = useAnimate\u003cHTMLDivElement\u003e();\n\n  useEffect(() =\u003e {\n    sequence()\n      .animate(\"fadeInFromBottom\")\n      .wait(300)\n      .animate(\"pulse\");\n  }, []);\n\n  return \u003cdiv ref={ref}\u003eHello\u003c/div\u003e;\n}\n```\n\n---\n\n## 🧠 Semantic Recipes (State-driven UX)\n\n```tsx\nimport { useRecipe } from \"react-animate-z\";\n\nfunction SaveButton() {\n  const anim = useRecipe();\n\n  return (\n    \u003cbutton\n      ref={anim.ref}\n      onClick={async () =\u003e {\n        anim.loading();\n        await save();\n        anim.success();\n      }}\n    \u003e\n      Save\n    \u003c/button\u003e\n  );\n}\n```\n\nAvailable presets:\n- loading()\n- success()\n- error()\n- idle()\n\n---\n\n## 🔁 \u003cAnimateOn /\u003e — Trigger by State Change\n\n```ts\nimport { AnimateOn } from \"react-animate-z\";\n\n\u003cAnimateOn when={status} value=\"success\" anim={[\"fadeIn\", \"pulse\"]}\u003e\n  \u003cdiv\u003eDone!\u003c/div\u003e\n\u003c/AnimateOn\u003e\n\n```\n\n---\n\n## 🧩 AnimateGroup – Staggered Children\n\n```tsx\nimport { AnimateGroup } from \"react-animate-z\";\n\n\u003cAnimateGroup type=\"fadeInUp\" stagger={160}\u003e\n  \u003cdiv\u003eItem 1\u003c/div\u003e\n  \u003cdiv\u003eItem 2\u003c/div\u003e\n  \u003cdiv\u003eItem 3\u003c/div\u003e\n\u003c/AnimateGroup\u003e\n\n```\n\n---\n\n## ⌨️ Typing Animation\n\n```tsx\nimport { AnimateTyping } from \"react-animate-z\";\n\n\u003cAnimateTyping\n  dataText={[\n    \"Hello World\",\n    \"React Animate Z\",\n    \"Built for UX\",\n  ]}\n/\u003e\n```\n\n---\n\n## 🎲 Random \u0026 Playful Motion\n\n```ts\nimport { useRandomAnimateNoRepeat } from \"react-animate-z\";\n\nconst play = useRandomAnimateNoRepeat(run, [\n  \"shakeMix\",\n  \"pulse\",\n  \"flash\",\n  \"jelly\",\n]);\n\n\u003cbutton onClick={() =\u003e play()}\u003eSurprise me\u003c/button\u003e\n\n```\n\n---\n\n## 🪄 AnimatePresence (Enter / Exit)\n\n`AnimatePresence` animates mount / unmount using enter / exit animation pairs,\nsimilar to Framer Motion but lighter, CSS-based, and no styled-components dependency.\n\n#### ✅ Use case\n- Modal\n- Drawer / Sidebar\n- Toast / Snackbar\n- Tooltip\n- Dropdown\n- Conditional UI\n---\n\n#### 📌 Basic usage\n\n```tsx\nimport { AnimatePresence } from \"react-animate-z\";\n\nfunction Example({ open }: { open: boolean }) {\n  return (\n    \u003cAnimatePresence\n      show={open}\n      enter=\"fadeIn\"\n      exit=\"fadeOut\"\n      duration={300}\n    \u003e\n      \u003cdiv\u003eHello\u003c/div\u003e\n    \u003c/AnimatePresence\u003e\n  );\n}\n\n```\n---\n\n#### 🔥 Example: Modal\n\n```tsx\n\u003cAnimatePresence\n  show={open}\n  enter=\"zoomIn\"\n  exit=\"fadeOut\"\n  duration={250}\n\u003e\n  \u003cdiv className=\"modal\" /\u003e\n\u003c/AnimatePresence\u003e\n```\n\n---\n\n\n#### 🧠 Behavior timeline\n\n```bash\nshow = false\n  └─ nothing rendered\n\nshow = true\n  └─ mount\n      └─ enter animation\n\nshow = false\n  └─ exit animation\n      └─ wait(duration)\n          └─ unmount\n```\n\n- Declarative intent, not keyframes\n- Timeline-based composition\n- Ref-first, framework-agnostic core\n- Safe defaults for accessibility\n\n---\n\n## 🧩 Additional APIs\n\n#### Components\n- AnimateHost: Low-level animation context host, used for coordinating multiple animated elements.\n- WrapperAnimate: Conditional animation wrapper without breaking DOM structure.\n- TypingText: Lightweight typing animation for inline text (simpler than AnimateTyping).\n\n#### Hooks\n- useAnimateController: Imperative control over animation lifecycle (play, stop, reset).\n- useAnimateSequence: Timeline logic as a hook for reusable animation flows.\n- useRandomAnimateNoRepeat: Random animation helper with no immediate repetition.\n- useRecipe: Semantic, state-driven animation (loading, success, error).\n\n\u003e These APIs are intended for advanced or compositional use cases.\n\u003e Most applications only need \u003cAnimate /\u003e and useAnimate().\n\n---\n\n## 📜 License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdelpikye-v%2Freact-animate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdelpikye-v%2Freact-animate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdelpikye-v%2Freact-animate/lists"}