{"id":13461466,"url":"https://github.com/teodosii/react-tweenful","last_synced_at":"2025-10-06T00:51:42.545Z","repository":{"id":38989937,"uuid":"234317379","full_name":"teodosii/react-tweenful","owner":"teodosii","description":"Animation engine designed for React","archived":false,"fork":false,"pushed_at":"2023-03-03T10:13:34.000Z","size":6158,"stargazers_count":85,"open_issues_count":15,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-09T14:51:00.986Z","etag":null,"topics":["animation-engine","animation-library","react","react-animation","react-component","react-tween"],"latest_commit_sha":null,"homepage":"https://teodosii.github.io/react-tweenful","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/teodosii.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":"2020-01-16T12:41:43.000Z","updated_at":"2025-01-03T03:24:55.000Z","dependencies_parsed_at":"2024-01-20T23:44:20.087Z","dependency_job_id":null,"html_url":"https://github.com/teodosii/react-tweenful","commit_stats":{"total_commits":51,"total_committers":2,"mean_commits":25.5,"dds":0.3529411764705882,"last_synced_commit":"2443c4a430dd73559d62e0a95e6f4c1a0fac6ccd"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/teodosii/react-tweenful","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/teodosii%2Freact-tweenful","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/teodosii%2Freact-tweenful/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/teodosii%2Freact-tweenful/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/teodosii%2Freact-tweenful/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/teodosii","download_url":"https://codeload.github.com/teodosii/react-tweenful/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/teodosii%2Freact-tweenful/sbom","scorecard":{"id":874106,"data":{"date":"2025-08-18","repo":{"name":"github.com/teodosii/react-tweenful","commit":"2443c4a430dd73559d62e0a95e6f4c1a0fac6ccd"},"scorecard":{"version":"v5.2.1-41-g40576783","commit":"40576783fda6698350fcbbeaea760ff827433034"},"score":1.7,"checks":[{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#dangerous-workflow"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#packaging"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#maintained"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#token-permissions"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#binary-artifacts"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#cii-best-practices"}},{"name":"Code-Review","score":0,"reason":"Found 0/9 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#code-review"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#pinned-dependencies"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 24 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":0,"reason":"125 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-968p-4wvh-cqc8","Warn: Project is vulnerable to: GHSA-67hx-6x53-jw92","Warn: Project is vulnerable to: GHSA-v88g-cgmw-v5xw","Warn: Project is vulnerable to: GHSA-whgm-jr23-g3j9","Warn: Project is vulnerable to: GHSA-93q8-gq69-wqmw","Warn: Project is vulnerable to: GHSA-fwr7-v2mv-hh25","Warn: Project is vulnerable to: GHSA-qwcr-r2fm-qrc7","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg","Warn: Project is vulnerable to: GHSA-x9w5-v3q2-3rhw","Warn: Project is vulnerable to: GHSA-w8qv-6jwh-64r5","Warn: Project is vulnerable to: GHSA-cpq7-6gpm-g9rc","Warn: Project is vulnerable to: GHSA-257v-vj4p-3w2h","Warn: Project is vulnerable to: GHSA-pxg6-pf52-xh8x","Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275","Warn: Project is vulnerable to: GHSA-gxpj-cx7g-858c","Warn: Project is vulnerable to: GHSA-w573-4hg7-7wgq","Warn: Project is vulnerable to: GHSA-3wcq-x3mq-6r9p","Warn: Project is vulnerable to: GHSA-vh7m-p724-62c2","Warn: Project is vulnerable to: GHSA-r9p9-mrjm-926w","Warn: Project is vulnerable to: GHSA-434g-2637-qmqr","Warn: Project is vulnerable to: GHSA-49q7-c7j4-3p7m","Warn: Project is vulnerable to: GHSA-977x-g7h5-7qgw","Warn: Project is vulnerable to: GHSA-f7q4-pwc6-w24p","Warn: Project is vulnerable to: GHSA-fc9h-whq2-v747","Warn: Project is vulnerable to: GHSA-vjh7-7g9h-fjfh","Warn: Project is vulnerable to: GHSA-6h5x-7c5m-7cr7","Warn: Project is vulnerable to: GHSA-rv95-896h-c2vc","Warn: Project is vulnerable to: GHSA-qw6h-vgh9-j6wx","Warn: Project is vulnerable to: GHSA-74fj-2j2h-c42q","Warn: Project is vulnerable to: GHSA-pw2r-vq6v-hr8c","Warn: Project is vulnerable to: GHSA-jchw-25xp-jwwc","Warn: Project is vulnerable to: GHSA-cxjh-pqwp-8mfp","Warn: Project is vulnerable to: GHSA-fjxv-7rqg-78g4","Warn: Project is vulnerable to: GHSA-8mmm-9v2q-x3f9","Warn: Project is vulnerable to: GHSA-ww39-953v-wcq6","Warn: Project is vulnerable to: GHSA-vfrc-7r7c-w9mx","Warn: Project is vulnerable to: GHSA-7wwv-vh3v-89cq","Warn: Project is vulnerable to: GHSA-43f8-2h32-f4cj","Warn: Project is vulnerable to: GHSA-pfq8-rq6v-vf5m","Warn: Project is vulnerable to: GHSA-6x33-pw7p-hmpq","Warn: Project is vulnerable to: GHSA-c7qv-q95q-8v27","Warn: Project is vulnerable to: GHSA-qqgx-2p2h-9c37","Warn: Project is vulnerable to: GHSA-78xj-cgh5-2h22","Warn: Project is vulnerable to: GHSA-2p57-rm9w-gvfp","Warn: Project is vulnerable to: GHSA-7r28-3m3f-r2pr","Warn: Project is vulnerable to: GHSA-r8j5-h5cx-65gg","Warn: Project is vulnerable to: GHSA-896r-f27r-55mw","Warn: Project is vulnerable to: GHSA-9c47-m6qq-7p4h","Warn: Project is vulnerable to: GHSA-76p3-8jx3-jpfq","Warn: Project is vulnerable to: GHSA-3rfm-jhwj-7488","Warn: Project is vulnerable to: GHSA-hhq3-ff78-jv3g","Warn: Project is vulnerable to: GHSA-p6mc-m468-83gw","Warn: Project is vulnerable to: GHSA-29mw-wpgm-hmr9","Warn: Project is vulnerable to: GHSA-35jh-r3h4-6jhm","Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv","Warn: Project is vulnerable to: GHSA-f8q6-p94x-37v3","Warn: Project is vulnerable to: GHSA-vh95-rmgr-6w4m","Warn: Project is vulnerable to: GHSA-xvch-5gv4-984h","Warn: Project is vulnerable to: GHSA-r683-j2x4-v87g","Warn: Project is vulnerable to: GHSA-92xj-mqp7-vmcj","Warn: Project is vulnerable to: GHSA-wxgw-qj99-44c2","Warn: Project is vulnerable to: GHSA-5rrq-pxf6-6jx5","Warn: Project is vulnerable to: GHSA-8fr3-hfg3-gpgp","Warn: Project is vulnerable to: GHSA-gf8q-jrpm-jvxq","Warn: Project is vulnerable to: GHSA-2r2c-g63r-vccr","Warn: Project is vulnerable to: GHSA-cfm4-qjh2-4765","Warn: Project is vulnerable to: GHSA-x4jg-mjrx-434g","Warn: Project is vulnerable to: GHSA-r8f7-9pfq-mjmv","Warn: Project is vulnerable to: GHSA-rp65-9cf3-cjxr","Warn: Project is vulnerable to: GHSA-76c9-3jph-rj3q","Warn: Project is vulnerable to: GHSA-hj48-42vr-x3v9","Warn: Project is vulnerable to: GHSA-9wv6-86v2-598j","Warn: Project is vulnerable to: GHSA-rhx6-c78j-4q9w","Warn: Project is vulnerable to: GHSA-h7cp-r72f-jxh6","Warn: Project is vulnerable to: GHSA-v62p-rq8g-8h59","Warn: Project is vulnerable to: GHSA-566m-qj78-rww5","Warn: Project is vulnerable to: GHSA-hwj9-h5mp-3pm3","Warn: Project is vulnerable to: GHSA-7fh5-64p2-3v2j","Warn: Project is vulnerable to: GHSA-wvhm-4hhf-97x9","Warn: Project is vulnerable to: GHSA-h4hr-7fg3-h35w","Warn: Project is vulnerable to: GHSA-gj77-59wh-66hg","Warn: Project is vulnerable to: GHSA-hqhp-5p83-hx96","Warn: Project is vulnerable to: GHSA-3949-f494-cm99","Warn: Project is vulnerable to: GHSA-x7hr-w5r2-h6wg","Warn: Project is vulnerable to: GHSA-hrpp-h998-j3pp","Warn: Project is vulnerable to: GHSA-p8p7-x288-28g6","Warn: Project is vulnerable to: GHSA-7mwh-4pqv-wmr8","Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw","Warn: Project is vulnerable to: GHSA-m6fv-jmcg-4jfg","Warn: Project is vulnerable to: GHSA-hxcc-f52p-wc94","Warn: Project is vulnerable to: GHSA-cm22-4g7w-348p","Warn: Project is vulnerable to: GHSA-95m3-7q98-8xr5","Warn: Project is vulnerable to: GHSA-c9g6-9335-x697","Warn: Project is vulnerable to: GHSA-vx3p-948g-6vhq","Warn: Project is vulnerable to: GHSA-3jfq-g458-7qm9","Warn: Project is vulnerable to: GHSA-5955-9wpr-37jh","Warn: Project is vulnerable to: GHSA-f5x3-32g6-xq36","Warn: Project is vulnerable to: GHSA-r628-mhmh-qjhw","Warn: Project is vulnerable to: GHSA-9r2w-394v-53qc","Warn: Project is vulnerable to: GHSA-qq89-hq3f-393p","Warn: Project is vulnerable to: GHSA-4wf5-vphf-c2xc","Warn: Project is vulnerable to: GHSA-52f5-9888-hmc6","Warn: Project is vulnerable to: GHSA-jgrx-mgxx-jf9v","Warn: Project is vulnerable to: GHSA-72xf-g2v4-qvf3","Warn: Project is vulnerable to: GHSA-7p7h-4mm5-852v","Warn: Project is vulnerable to: GHSA-662x-fhqg-9p8v","Warn: Project is vulnerable to: GHSA-394c-5j6w-4xmx","Warn: Project is vulnerable to: GHSA-78cj-fxph-m83p","Warn: Project is vulnerable to: GHSA-fhg7-m89q-25r3","Warn: Project is vulnerable to: GHSA-9m6j-fcg5-2442","Warn: Project is vulnerable to: GHSA-hh27-ffr2-f2jc","Warn: Project is vulnerable to: GHSA-rqff-837h-mm52","Warn: Project is vulnerable to: GHSA-8v38-pw62-9cw2","Warn: Project is vulnerable to: GHSA-hgjh-723h-mx2j","Warn: Project is vulnerable to: GHSA-jf5r-8hm2-f872","Warn: Project is vulnerable to: GHSA-wr3j-pwj9-hqq6","Warn: Project is vulnerable to: GHSA-4v9v-hfq4-rm2v","Warn: Project is vulnerable to: GHSA-9jgg-88mc-972h","Warn: Project is vulnerable to: GHSA-g78m-2chm-r7qv","Warn: Project is vulnerable to: GHSA-j8xg-fqg3-53r7","Warn: Project is vulnerable to: GHSA-6fc8-4gx4-v693","Warn: Project is vulnerable to: GHSA-3h5v-q93c-6h6q","Warn: Project is vulnerable to: GHSA-c4w7-xm78-47vh","Warn: Project is vulnerable to: GHSA-p9pc-299p-vxgp"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-24T05:18:06.854Z","repository_id":38989937,"created_at":"2025-08-24T05:18:06.854Z","updated_at":"2025-08-24T05:18:06.854Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278542676,"owners_count":26004061,"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-10-05T02:00:06.059Z","response_time":54,"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":["animation-engine","animation-library","react","react-animation","react-component","react-tween"],"created_at":"2024-07-31T11:00:39.709Z","updated_at":"2025-10-06T00:51:42.517Z","avatar_url":"https://github.com/teodosii.png","language":"JavaScript","funding_links":[],"categories":["UI Animation","目录"],"sub_categories":["Form Components","\u003ca id=\"ui\"\u003eui\u003c/a\u003e","GraphQL"],"readme":"[![npm version](https://badgen.net/npm/v/react-tweenful)](https://www.npmjs.com/package/react-tweenful) [![Minified \u0026 Gzipped size](https://badgen.net/bundlephobia/minzip/react-tweenful)](https://bundlephobia.com/result?p=react-ttweenful)\n\n# react-tweenful\n\nLooking for an amazing React library for animating stuff? Look no more, we've got you covered!\n\n## Demo\n\nhttps://teodosii.github.io/react-tweenful/\n\n## Features\n\n* Loop support (infinite or up to a specific number)\n* Wide variety of easings (bezier, predefined and custom easing)\n* Delayed animations (before and after)\n* Events support\n* Negative delay support to mimic CSS animations\n* Percent based animations to mimic CSS animations (e.g. `0%`, `50%`, `100%`)\n* `Tweenful` component for animating DOM nodes\n* `SVG` component to animate SVG nodes\n* `Observer` component for mount/unmount animations\n* `ObserverGroup` component to handle child transition (list removal/insertion, page transition etc)\n\n## Getting started\n\n```\nnpm install react-tweenful\n```\n\n### Development\n\nIn order to build the project and run it on your local machine, you'll need to build both the `site` project and the library itself. The `site` project will have a dependency of `react-tweenful` and there you'll be able to play with the examples.\n\n```\nnpm run build:library:dev\nnpm run start\n```\n\nOr if you want to be able to modify both projects at once and let webpack watch the changes and do the build for you, then open 2 separate terminals and run the following commands\n\n```\nnpm run watch:library:dev\n```\nAnd in a separate terminal run\n```\nnpm run start\n```\n\nBoth commands will instruct webpack to watch for changes.\nNavigate to `http://localhost:8080/react-tweenful` or whatever port you're running the application on.\n\n## Usage\n\n`react-tweenful` exports the following:\n\n* `Tweenful` - component to animate DOM elements. It requires a DOM node to perform animation on.\n* `SVG` - component to animate SVG elements. It requires a SVG node to perform animation on.\n* `Observer` - component to animate mounting and unmounting of an element.\n* `ObserverGroup` - component to watch over a list of `Observer` elements such as list removal/insertion or route transition\n\nA couple of utility functions are also exported to help you out animating:\n\n* `percentage` for percentage based animations\n* `bezier` for bezier easings\n* `elastic` for elastic easing\n\nImport the needed component, for example `Tweenful`\n\n```jsx\nimport Tweenful, { elastic } from 'react-tweenful';\n```\n\n`Tweenful` requires a node to render on which it will perform the animation. We've got most of the DOM nodes covered in the form of namespacing such as `Tweenful.div`, `Tweenful.span` and so on.\n\n```jsx\nconst Example = () =\u003e (\n  \u003cTweenful.div\t\n    className=\"tween-box\"\t\n    duration={2000}\t\n    easing={elastic(1, 0.1)}\n    style={{ position: 'relative' }}\t\n    animate={{ left: ['0px', '250px'] }}\n  \u003e\u003c/Tweenful.div\u003e\n);\n```\n\nVoila!\n\n## Examples\n\n### Observer\n\nView animation [here](https://teodosii.github.io/react-tweenful/observer)\n\nUsage of `Observer` component together with `Tweenful`. Animate movement with `Tweenful` and subscribe to mount and unmount with `Observer`.\n\n![Observer](https://github.com/teodosii/react-tweenful/raw/master/gif/observer.gif \"Observer\")\n\n```jsx\nimport React, { useEffect, useState } from 'react';\nimport Tweenful, { Observer, elastic } from 'react-tweenful';\n\nconst props = {\n  delay: 200,\n  render: true,\n  duration: 1600,\n  easing: elastic(1, 0.1),\n  loop: false,\n  animate: { translateX: '400px' },\n  events: {\n    onAnimationStart: () =\u003e console.log('AnimationStart'),\n    onAnimationEnd: () =\u003e console.log('AnimationEnd')\n  }\n};\n\nconst ObserverDemo = () =\u003e {\n  const [shouldRender, setShouldRender] = useState(true);\n\n  useEffect(() =\u003e {\n    setTimeout(() =\u003e setShouldRender(false), 3000);\n  }, []);\n\n  return (\n    \u003cObserver\n      render={shouldRender}\n      duration={1200}\n      style={{ opacity: 0 }}\n      mount={{ opacity: 1 }}\n      unmount={[{ opacity: 0 }]}\n      easing=\"linear\"\n    \u003e\n      \u003cdiv className=\"observer-demo\"\u003e\n        \u003cTweenful.div className=\"box-demo\" {...props}\u003e\u003c/Tweenful.div\u003e\n      \u003c/div\u003e\n    \u003c/Observer\u003e\n  );\n};\n```\n\n### ObserverGroup\n\nView animation [here](https://teodosii.github.io/react-tweenful/notifications)\n\nUsage of `ObserverGroup` component to watch for mounting and unmounting over a list of notifications\n\n![Notifications](https://github.com/teodosii/react-tweenful/raw/master/gif/notifications.gif \"Notifications\")\n\n```jsx\n\u003cObserverGroup\n  config={{\n    duration: 800,\n    style: { overflow: 'hidden' },\n    mount: { opacity: [0, 1], height: ['0px', 'auto'] },\n    unmount: { opacity: [1, 0], height: ['auto', '0px'] },\n    easing: 'easeInOutCubic'\n  }}\n  skipInitial={true}\n\u003e\n  {this.state.notifications.map(notification =\u003e (\n    \u003cNotification\n      key={notification.id}\n      notification={notification}\n      onClick={this.removeNotification}\n    /\u003e\n  ))}\n\u003c/ObserverGroup\u003e\n```\n\n### Animate route transition\n\nView animation [here](https://teodosii.github.io/react-tweenful/transition)\n\nUsage of `ObserverGroup` to animate route change\n\n![Routing](https://github.com/teodosii/react-tweenful/raw/master/gif/transition.gif \"Routing\")\n\n```jsx\nimport React from 'react';\nimport { Route, Switch, NavLink } from 'react-router-dom';\nimport ObserverGroup from 'react-tweenful/ObserverGroup';\nimport Observer from 'react-tweenful/Observer';\n\nconst colors = {\n  red: '#EE4266',\n  yellow: '#FDB833',\n  blue: '#296EB4',\n  green: '#0EAD69'\n};\n\nconst Red = () =\u003e \u003cdiv className=\"color-block\" style={{ backgroundColor: colors.red }}\u003e\u003c/div\u003e;\nconst Yellow = () =\u003e \u003cdiv className=\"color-block\" style={{ backgroundColor: colors.yellow }}\u003e\u003c/div\u003e;\nconst Blue = () =\u003e \u003cdiv className=\"color-block\" style={{ backgroundColor: colors.blue }}\u003e\u003c/div\u003e;\nconst Green = () =\u003e \u003cdiv className=\"color-block\" style={{ backgroundColor: colors.green }}\u003e\u003c/div\u003e;\n\nclass RouteTransitionDemo extends React.Component {\n  constructor(props) {\n    super(props);\n  }\n\n  render() {\n    const { location } = this.props;\n\n    return (\n      \u003cdiv className=\"route-transition-demo\"\u003e\n        \u003cul className=\"nav-links\"\u003e\n          \u003cli\u003e\u003cNavLink to=\"/transition/red\"\u003eRed\u003c/NavLink\u003e\u003c/li\u003e\n          \u003cli\u003e\u003cNavLink to=\"/transition/yellow\"\u003eYellow\u003c/NavLink\u003e\u003c/li\u003e\n          \u003cli\u003e\u003cNavLink to=\"/transition/blue\"\u003eBlue\u003c/NavLink\u003e\u003c/li\u003e\n          \u003cli\u003e\u003cNavLink to=\"/transition/green\"\u003eGreen\u003c/NavLink\u003e\u003c/li\u003e\n        \u003c/ul\u003e\n        \u003cdiv className=\"observer\"\u003e\n          \u003cObserverGroup\u003e\n            \u003cObserver.div\n              key={location.pathname}\n              className=\"key-wrapper\"\n              duration={1000}\n              style={{ opacity: 0 }}\n              mount={{ opacity: 1 }}\n              unmount={{ opacity: 0 }}\n              easing={'easeOutQuad'}\n            \u003e\n              \u003cSwitch location={location}\u003e\n                \u003cRoute exact path={`/transition/red`} component={Red} /\u003e\n                \u003cRoute exact path={`/transition/green`} component={Green} /\u003e\n                \u003cRoute exact path={`/transition/blue`} component={Blue} /\u003e\n                \u003cRoute exact path={`/transition/yellow`} component={Yellow} /\u003e\n                \u003cRoute render={() =\u003e \u003cdiv\u003eNot Found\u003c/div\u003e} /\u003e\n              \u003c/Switch\u003e\n            \u003c/Observer.div\u003e\n          \u003c/ObserverGroup\u003e\n        \u003c/div\u003e\n      \u003c/div\u003e\n    );\n  }\n}\n\nexport default RouteTransitionDemo;\n\n```\n\n### Prism\n\nView animation [here](https://teodosii.github.io/react-tweenful/rotating-svg)\n\n`react-tweenful` in action powering a super awesome looking animation.\n\n![Prism](https://github.com/teodosii/react-tweenful/raw/master/gif/rotating-svg.gif \"Prism\")\n\n```jsx\nimport React from 'react';\nimport { SVG } from 'react-tweenful';\n\nconst WAVE_COUNT = 16;\nconst offset = 40;\nconst waveLength = 375;\nconst duration = 1500;\n\nconst waves = new Array(WAVE_COUNT).fill(0).map((wave, i) =\u003e ({\n  key: i + 1,\n  style: {\n    transformOrigin: '500px 500px',\n    opacity: 4 / WAVE_COUNT,\n    mixBlendMode: 'screen',\n    fill: `hsl(${(360 / WAVE_COUNT) * (i + 1)}, 100%, 50%)`,\n    transform: `rotate(${(360 / WAVE_COUNT) * i}deg) translate(${waveLength}px, ${offset}px)`\n  },\n  rotate: `${(360 / WAVE_COUNT) * (i + 1)}deg`,\n  translate: `${waveLength}px ${offset}px`,\n  angle: `${(360 / WAVE_COUNT) * (i + 1)}deg`,\n  delay: (duration / WAVE_COUNT) * (i + 1) * -3,\n  path:\n    'M-1000,1000V388c86-2,111-38,187-38s108,38,187,38,111-38,187-38,108,38,187,38,111-38,187-38,108,38,187,38,111-38,187-38,109,38,188,38,110-38,187-38,108,38,187,38,111-38,187-38,108,38,187,38,111-38,187-38,108,38,187,38,111-38,187-38,109,38,188,38c0,96,0,612,0,612Z'\n}));\n\nconst RotatingSvg = () =\u003e {\n  return (\n    \u003csvg height=\"300\" xmlns=\"http://www.w3.org/2000/svg\" x=\"0px\" y=\"0px\" viewBox=\"0 0 1000 1000\"\u003e\n      \u003cdefs\u003e\n        \u003cclipPath id=\"world\"\u003e\n          \u003ccircle cx=\"500\" cy=\"500\" r=\"450\" stroke=\"none\" fill=\"none\"\u003e\u003c/circle\u003e\n        \u003c/clipPath\u003e\n      \u003c/defs\u003e\n      \u003ccircle cx=\"500\" cy=\"500\" r=\"450\" stroke=\"none\" fill=\"#000\"\u003e\u003c/circle\u003e\n      \u003cSVG\n        type=\"g\"\n        className=\"circle\"\n        loop={true}\n        duration={(WAVE_COUNT / 2) * duration}\n        style={{ transformOrigin: '500px 500px' }}\n        easing=\"linear\"\n        animate={{ rotate: '360deg' }}\n      \u003e\n        {waves.map(wave =\u003e (\n          \u003cSVG.path\n            loop={true}\n            id={wave.key}\n            key={wave.key}\n            easing=\"linear\"\n            duration={1500}\n            d={wave.path}\n            style={wave.style}\n            delay={wave.delay}\n            transform={{ rotate: wave.rotate, translate: wave.translate }}\n            animate={{ rotate: `${wave.angle}`, translate: `0px ${offset}px` }}\n          /\u003e\n        ))}\n      \u003c/SVG\u003e\n    \u003c/svg\u003e\n  );\n};\n```\n\n### SVG\n\nView animation [here](https://teodosii.github.io/react-tweenful/svg)\n\nAn example animating SVG `path` and `fill` properties one after the other.\n\n![SVG](https://github.com/teodosii/react-tweenful/raw/master/gif/svg-path.gif \"SVG\")\n\n### Gradients\n\nView animation [here](https://teodosii.github.io/react-tweenful/gradients)\n\nAn example using `elastic` easing to animate gradient boxes.\n\n![Gradients](https://github.com/teodosii/react-tweenful/raw/master/gif/gradients.gif \"Gradients\")\n\n```jsx\nimport React from 'react';\nimport Tweenful, { elastic } from 'react-tweenful';\n\nconst Gradients = () =\u003e {\n  const elements = new Array(10)\n    .fill(0)\n    .map((_e, i) =\u003e (\n      \u003cTweenful.div\n        className={`gradiant${i + 1} box`}\n        loop={true}\n        easing={elastic(1, 0.1)}\n        duration={3000}\n        delay={i * 100}\n        endDelay={(10 - i) * 100}\n        animate={[{ height: '20%' }, { height: ['20%', 'auto'] }]}\n        key={i}\n      \u003e\u003c/Tweenful.div\u003e\n    ));\n\n  return (\n    \u003cdiv className=\"gradients-container\"\u003e\n      \u003cdiv className=\"row\"\u003e{elements}\u003c/div\u003e\n    \u003c/div\u003e\n  );\n};\n```\n\n### Loader\n\nView animation [here](https://teodosii.github.io/react-tweenful/loading-circles)\n\n![Loader](https://github.com/teodosii/react-tweenful/raw/master/gif/rotating-circles.gif \"Loader\")\n\n```jsx\nimport React from 'react';\nimport Tweenful, { percentage } from 'react-tweenful';\n\nconst rotate = percentage({\n  '0%': { translate: '-50% -50%', rotate: '0deg' },\n  '50%': { translate: '-50% -50%', rotate: '0deg' },\n  '80%': { translate: '-50% -50%', rotate: '360deg' },\n  '100%': { translate: '-50% -50%', rotate: '360deg' }\n});\nconst dot1Animate = percentage({\n  '0%': { scale: 1 },\n  '20%': { scale: 1 },\n  '45%': { translate: '16px 12px', scale: 0.45 },\n  '60%': { translate: '160px 150px', scale: 0.45 },\n  '80%': { translate: '160px 150px', scale: 0.45 },\n  '100%': { translate: '0px 0px', scale: 1 }\n});\nconst dot2Animate = percentage({\n  '0%': { scale: 1 },\n  '20%': { scale: 1 },\n  '45%': { translate: '-16px 12px', scale: 0.45 },\n  '60%': { translate: '-160px 150px', scale: 0.45 },\n  '80%': { translate: '-160px 150px', scale: 0.45 },\n  '100%': { translate: '0px 0px', scale: 1 }\n});\nconst dot3Animate = percentage({\n  '0%': { scale: 1 },\n  '20%': { scale: 1 },\n  '45%': { translateY: '-18px', scale: 0.45 },\n  '60%': { translateY: '-180px', scale: 0.45 },\n  '80%': { translateY: '-180px', scale: 0.45 },\n  '100%': { translateY: '0px', scale: 1 }\n});\n\nconst LoadingCircles = () =\u003e {\n  return (\n    \u003cdiv className=\"loading-wrapper\"\u003e\n      \u003cTweenful.div\n        className=\"loading-circles-container\"\n        duration={2000}\n        loop={true}\n        easing=\"easeInOutCubic\"\n        transform={{ translate: '-50% -50%' }}\n        animate={rotate}\n      \u003e\n        \u003cTweenful.div\n          className=\"dot dot-1\"\n          duration={2000}\n          easing=\"easeOutCubic\"\n          loop={true}\n          transform={{ translate: '0px 0px', scale: 1 }}\n          animate={dot1Animate}\n        \u003e\u003c/Tweenful.div\u003e\n        \u003cTweenful.div\n          className=\"dot dot-2\"\n          duration={2000}\n          easing=\"easeOutCubic\"\n          loop={true}\n          transform={{ translate: '0px 0px', scale: 1 }}\n          animate={dot2Animate}\n        \u003e\u003c/Tweenful.div\u003e\n        \u003cTweenful.div\n          className=\"dot dot-3\"\n          duration={2000}\n          easing=\"easeOutCubic\"\n          loop={true}\n          transform={{ translateY: '0px', scale: 1 }}\n          animate={dot3Animate}\n        \u003e\u003c/Tweenful.div\u003e\n      \u003c/Tweenful.div\u003e\n\n      \u003csvg xmlns=\"http://www.w3.org/2000/svg\" version=\"1.1\"\u003e\n        \u003cdefs\u003e\n          \u003cfilter id=\"goo\"\u003e\n            \u003cfeGaussianBlur in=\"SourceGraphic\" stdDeviation=\"10\" result=\"blur\" /\u003e\n            \u003cfeColorMatrix\n              in=\"blur\"\n              mode=\"matrix\"\n              values=\"1 0 0 0 0  0 1 0 0 0  0 0 1 0 0  0 0 0 21 -7\"\n            /\u003e\n          \u003c/filter\u003e\n        \u003c/defs\u003e\n      \u003c/svg\u003e\n    \u003c/div\u003e\n  );\n};\n\n```\n\n### Bouncing Balls\n\nView animation [here](https://teodosii.github.io/react-tweenful/bouncing-balls)\n\nBouncing balls illustrate negative delay support in `react-tweenful`\n\n![Bouncing Balls](https://github.com/teodosii/react-tweenful/raw/master/gif/bouncing-ball.gif \"Bouncing Balls\")\n\n```jsx\nimport React from 'react';\nimport { SVG, percentage, elastic } from 'react-tweenful';\n\nconst circles = new Array(10).fill(0).map((_e, i) =\u003e ({\n  loop: true,\n  fill: `hsl(${(i + 1) * 20 - 20}, 70%, 70%)`,\n  delay: ((i + 1) * 1500) / -10,\n  duration: 1500,\n  easing: elastic(2, 0.9),\n  transform: {\n    translate: '0 100px'\n  },\n  style: {\n    transformOrigin: `${-200 + 120 * (i + 1)}px 250px`\n  },\n  animate: percentage({\n    '0%': { translate: '0px 100px', scale: 1 },\n    '50%': { translate: '0px -100px', scale: 0.3 },\n    '100%': { translate: '0px 100px', scale: 1 }\n  }),\n  r: 35,\n  cx: 100 * i + 50,\n  cy: 250\n}));\n\nconst BouncingBalls = () =\u003e {\n  return (\n    \u003cdiv className=\"bouncing-balls\"\u003e\n      \u003csvg xmlns=\"http://www.w3.org/2000/svg\" x=\"0px\" y=\"0px\" viewBox=\"0 0 1000 500\"\u003e\n        {circles.map((circle, i) =\u003e (\n          \u003cSVG.circle key={i} {...circle}\u003e\u003c/SVG.circle\u003e\n        ))}\n      \u003c/svg\u003e\n    \u003c/div\u003e\n  );\n};\n```\n\n## API\n\n**Update in progress. Stay in touch!**\n\n## Note\n\nA couple of the animations shown here have been initially created for CodePen by other folks. My only contribution to them was to convert them to `react-tweenful` to show real world examples on animating stuff.\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fteodosii%2Freact-tweenful","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fteodosii%2Freact-tweenful","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fteodosii%2Freact-tweenful/lists"}