{"id":15064847,"url":"https://github.com/micahfang/twc-animate","last_synced_at":"2026-01-03T07:04:38.374Z","repository":{"id":153536582,"uuid":"627771734","full_name":"MICAHFANG/twc-animate","owner":"MICAHFANG","description":"A TailwindCSS plugin provides a variety of commonly used animation effects.","archived":false,"fork":false,"pushed_at":"2023-04-19T02:53:18.000Z","size":341,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-24T13:51:03.825Z","etag":null,"topics":["tailwind","tailwindcss"],"latest_commit_sha":null,"homepage":"https://micahfang.github.io/twc-animate/","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/MICAHFANG.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":"2023-04-14T07:01:50.000Z","updated_at":"2023-04-19T01:13:11.000Z","dependencies_parsed_at":"2023-05-19T05:15:24.108Z","dependency_job_id":null,"html_url":"https://github.com/MICAHFANG/twc-animate","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MICAHFANG%2Ftwc-animate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MICAHFANG%2Ftwc-animate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MICAHFANG%2Ftwc-animate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MICAHFANG%2Ftwc-animate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MICAHFANG","download_url":"https://codeload.github.com/MICAHFANG/twc-animate/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243790999,"owners_count":20348385,"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":["tailwind","tailwindcss"],"created_at":"2024-09-25T00:27:19.338Z","updated_at":"2026-01-03T07:04:38.303Z","avatar_url":"https://github.com/MICAHFANG.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# @micahfang/twc-animate\n\n\u003ccenter\u003e\n\n![GitHub repo size](https://img.shields.io/github/repo-size/MICAHFANG/twc-animate?style=flat-square)\n![npm bundle size (scoped)](https://img.shields.io/bundlephobia/min/@micahfang/twc-animate?color=%236cb7ca\u0026style=flat-square)\n![npm](https://img.shields.io/npm/dm/@micahfang/twc-animate?color=%23604d9e\u0026style=flat-square)\n\n![NPM](https://img.shields.io/npm/l/@micahfang/twc-animate?style=flat-square)\n![GitHub package.json version](https://img.shields.io/github/package-json/v/MICAHFANG/twc-animate?color=%2315293d\u0026style=flat-square)\n\n\u003c/center\u003e\n\nA TailwindCSS plugin provides a variety of commonly used animation effects.\n\n[Examples](https://micahfang.github.io/twc-animate/)\n\n## Table of Contents\n\n- [@micahfang/twc-animate](#micahfangtwc-animate)\n  - [Table of Contents](#table-of-contents)\n  - [Install](#install)\n  - [Usage](#usage)\n    - [Animate duration times](#animate-duration-times)\n    - [Animate repeat count](#animate-repeat-count)\n    - [Shake animation](#shake-animation)\n    - [Animate duration times](#animate-duration-times-1)\n    - [Animate repeat count](#animate-repeat-count-1)\n    - [Shake animation](#shake-animation-1)\n  - [License](#license)\n\n## Install\n\nBefore you use `@micahfang/twc-animate` you should check your\n[tailwindcss](https://tailwindcss.com/docs) version is larger than 3.0.\n\n```sh\npnpm add @micahfang/twc-animate -D\n# or use yarn\nyarn add @micahfang/twc-animate -D\n# or use npm\nnpm install @micahfang/twc-animate -D\n```\n\n## Usage\n\nUpdate your `tailwind.config.js`\n\n```js\nmodule.exports = {\n  content: ['./src/**/*.{js,ts,jsx,tsx}'],\n  plugins: [require('@micahfang/twc-animate')], // require the plugin,\n}\n```\n\nSee more [examples](https://micahfang.github.io/twc-animate/).\n\n### Animate duration times\n\n`ani-duration-[times]`\n\n**example**\n\n```jsx\nconst AniCount = () =\u003e (\n  \u003c\u003e\n    \u003cdiv className=\"ani-shake ani-duration-200\"\u003e\u003c/div\u003e\n    \u003cdiv className=\"ani-shake ani-duration-300\"\u003e\u003c/div\u003e\n    \u003cdiv className=\"ani-shake ani-duration-[100ms]\"\u003e\u003c/div\u003e\n    \u003cdiv className=\"ani-shake ani-duration-1000\"\u003e\u003c/div\u003e\n  \u003c/\u003e\n)\n```\n\n### Animate repeat count\n\n`ani-count-[count]`\n\n**example**\n\n```jsx\nconst AniCount = () =\u003e (\n  \u003c\u003e\n    \u003cdiv className=\"ani-shake ani-count-1\"\u003e\u003c/div\u003e\n    \u003cdiv className=\"ani-shake ani-count-2\"\u003e\u003c/div\u003e\n    \u003cdiv className=\"ani-shake ani-count-[100]\"\u003e\u003c/div\u003e\n    \u003cdiv className=\"ani-shake ani-count-infinite\"\u003e\u003c/div\u003e\n  \u003c/\u003e\n)\n```\n\n### Shake animation\n\nIf you want to shake an element, you can yse add `ani-shake` class to your\nelement.\n\n**example**\n\n```jsx\nconst ShakeEle = () =\u003e \u003cdiv className=\"ani-shake ani-count-2\"\u003e\u003c/div\u003e\n```\n\nThe `ani-shake` class will add an animation to the div. Because of `ani-count-2`\nclass This animation will repeat twice.\n\n**Different types of shake**\n\n- `ani-shake`: rotate animate\n- `ani-shake-horizontal`: translate x\n- `ani-shake-vertical`: translate y\n\nSee more [examples]('https://micahfang.github.io/twc-animate/').\n\n### Animate duration times\n\n`ani-duration-[times]`\n\n**example**\n\n```jsx\nconst AniCount = () =\u003e (\n  \u003c\u003e\n    \u003cdiv className=\"ani-shake ani-duration-200\"\u003e\u003c/div\u003e\n    \u003cdiv className=\"ani-shake ani-duration-300\"\u003e\u003c/div\u003e\n    \u003cdiv className=\"ani-shake ani-duration-[100ms]\"\u003e\u003c/div\u003e\n    \u003cdiv className=\"ani-shake ani-duration-1000\"\u003e\u003c/div\u003e\n  \u003c/\u003e\n)\n```\n\n### Animate repeat count\n\n`ani-count-[count]`\n\n**example**\n\n```jsx\nconst AniCount = () =\u003e (\n  \u003c\u003e\n    \u003cdiv className=\"ani-shake ani-count-1\"\u003e\u003c/div\u003e\n    \u003cdiv className=\"ani-shake ani-count-2\"\u003e\u003c/div\u003e\n    \u003cdiv className=\"ani-shake ani-count-[100]\"\u003e\u003c/div\u003e\n    \u003cdiv className=\"ani-shake ani-count-infinite\"\u003e\u003c/div\u003e\n  \u003c/\u003e\n)\n```\n\n### Shake animation\n\nIf you want to shake an element, you can yse add `ani-shake` class to your\nelement.\n\n**example**\n\n```jsx\nconst ShakeEle = () =\u003e \u003cdiv className=\"ani-shake ani-count-2\"\u003e\u003c/div\u003e\n```\n\nThe `ani-shake` class will add an animation to the div. Because of `ani-count-2`\nclass This animation will repeat twice.\n\n**Different types of shake**\n\n- `ani-shake`: rotate animate\n- `ani-shake-horizontal`: translate x\n- `ani-shake-vertical`: translate y\n\nSee more [examples](https://micahfang.github.io/twc-animate/).\n\n## License\n\n[MIT © Micah Fang.](../LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmicahfang%2Ftwc-animate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmicahfang%2Ftwc-animate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmicahfang%2Ftwc-animate/lists"}