{"id":15207197,"url":"https://github.com/animatable-js/animatable_jsx","last_synced_at":"2026-02-04T11:43:57.922Z","repository":{"id":255446028,"uuid":"852154536","full_name":"animatable-js/animatable_jsx","owner":"animatable-js","description":"This extension package of animatable-js allows for easy and lightweight implementation of linear or curved animations in a JSX/TSX environment.","archived":false,"fork":false,"pushed_at":"2024-09-05T03:56:16.000Z","size":311,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-06-26T13:55:21.738Z","etag":null,"topics":["animatable-js","jsx","react"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/animatable-jsx","language":"TypeScript","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/animatable-js.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}},"created_at":"2024-09-04T10:14:56.000Z","updated_at":"2024-09-05T03:56:19.000Z","dependencies_parsed_at":"2024-09-04T23:02:44.999Z","dependency_job_id":"078436f7-fd63-4bca-9627-c7e6dbef9b87","html_url":"https://github.com/animatable-js/animatable_jsx","commit_stats":null,"previous_names":["animatable-js/animatable_jsx"],"tags_count":0,"template":false,"template_full_name":"web-packages/web-packages","purl":"pkg:github/animatable-js/animatable_jsx","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/animatable-js%2Fanimatable_jsx","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/animatable-js%2Fanimatable_jsx/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/animatable-js%2Fanimatable_jsx/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/animatable-js%2Fanimatable_jsx/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/animatable-js","download_url":"https://codeload.github.com/animatable-js/animatable_jsx/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/animatable-js%2Fanimatable_jsx/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264619588,"owners_count":23638475,"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":["animatable-js","jsx","react"],"created_at":"2024-09-28T06:23:38.570Z","updated_at":"2026-02-04T11:43:52.903Z","avatar_url":"https://github.com/animatable-js.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n  \u003cimg width=\"200px\" src=\"https://github.com/user-attachments/assets/ccc4a353-7903-4a49-a92d-26b6dfa1d200\"\u003e\n  \u003ch1\u003eAnimatable JSX Package\u003c/h1\u003e\n  \u003ctable\u003e\n        \u003cthead\u003e\n          \u003ctr\u003e\n            \u003cth\u003eVersion\u003c/th\u003e\n            \u003cth\u003ev1.0.0-alpha2\u003c/th\u003e\n          \u003c/tr\u003e\n        \u003c/tbody\u003e\n    \u003c/table\u003e\n\u003c/div\u003e\n\n# Introduction\nThis extension package of [animatable-js](https://github.com/animatable-js/animatable_js) allows for easy and lightweight implementation of linear or curved animations in a JSX/TSX environment.\n\n## Install by NPM\nTo install this package in your project, enter the following command.\n\n\u003e When you want to update this package, enter `npm update animatable-jsx --save` in the terminal to run it.\n\n```\nnpm install animatable-js, animatable-jsx\n```\n\n## How to animate a value to that you want.\nThis can be resolved using the provided `useAnimation` or `useAnimationController` hooks in this package.\n\n```jsx\nexport function Root() {\n  // is given a current value, an animation instance.\n  const [value, animation] = useAnimation(1000);\n\n  useEffect(() =\u003e {\n      animation.animateTo(1);\n  }, []);\n\n  return \u003ch1\u003eHello, World! {value}\u003c/h1\u003e\n}\n```\n\n## Usage about custom hooks.\nThe hooks initializes an animation instance and provides an updated animation value over time. It also ensures proper cleanup of the animation when the component is unmounted.\n\n### useAnimation()\nA custom hook for handling animations.\n\n```jsx\nconst [value, instance] =  useAnimation(duration, curve?, initialValue? = 0);\n```\n\n### useAnimationController()\nA custom hook for handling raw animations.\n\n```jsx\nconst [value, instance] =  useAnimationController(\n  duration,\n  lowerValue? = 0,\n  upperValue? = 1,\n  initialValue? = lowerValue\n);\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanimatable-js%2Fanimatable_jsx","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fanimatable-js%2Fanimatable_jsx","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanimatable-js%2Fanimatable_jsx/lists"}