{"id":20140045,"url":"https://github.com/jeremy-code/tailwindcss-animate-from-to","last_synced_at":"2026-01-27T10:01:48.677Z","repository":{"id":252329585,"uuid":"839786963","full_name":"jeremy-code/tailwindcss-animate-from-to","owner":"jeremy-code","description":"A Tailwind CSS plugin for creating custom animations using `from` and `to` keyframes.","archived":false,"fork":false,"pushed_at":"2025-06-12T09:16:59.000Z","size":55,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-06T10:57:48.936Z","etag":null,"topics":["animate","animation","keyframes","tailwind","tailwindcss"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/tailwindcss-animate-from-to","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/jeremy-code.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}},"created_at":"2024-08-08T10:19:57.000Z","updated_at":"2024-08-11T02:57:14.000Z","dependencies_parsed_at":"2024-08-11T04:47:49.498Z","dependency_job_id":null,"html_url":"https://github.com/jeremy-code/tailwindcss-animate-from-to","commit_stats":null,"previous_names":["jeremy-code/tailwindcss-animate-from-to"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/jeremy-code/tailwindcss-animate-from-to","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jeremy-code%2Ftailwindcss-animate-from-to","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jeremy-code%2Ftailwindcss-animate-from-to/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jeremy-code%2Ftailwindcss-animate-from-to/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jeremy-code%2Ftailwindcss-animate-from-to/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jeremy-code","download_url":"https://codeload.github.com/jeremy-code/tailwindcss-animate-from-to/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jeremy-code%2Ftailwindcss-animate-from-to/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28811495,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-27T07:41:26.337Z","status":"ssl_error","status_checked_at":"2026-01-27T07:41:08.776Z","response_time":168,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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","keyframes","tailwind","tailwindcss"],"created_at":"2024-11-13T21:48:54.725Z","updated_at":"2026-01-27T10:01:48.652Z","avatar_url":"https://github.com/jeremy-code.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# tailwindcss-animate-from-to\n\n[![License][license-badge]](LICENSE)\n[![NPM Version][npm-version-badge]][npm-package]\n\nA [Tailwind CSS](https://tailwindcss.com) plugin for creating custom animations using `from` and `to` keyframes.\n\n## Installation\n\nInstall the plugin from npm:\n\n```shell\nnpm install -D tailwindcss-animate-from-to\n```\n\nThen, add the plugin to your `tailwind.config.js` file:\n\n```js\n/** @type {import('tailwindcss').Config} */\nmodule.exports = {\n  theme: {\n    // ...\n  },\n  plugins: [\n    require(\"tailwindcss-animate-from-to\"),\n    // ...\n  ],\n};\n```\n\n## Usage\n\n### Opacity\n\nThe plugin defines a `from` and `to` keyframe for the `opacity` property, equivalent to:\n\n```css\n@keyframes opacity {\n  from {\n    opacity: var(--tw-opacity-from);\n  }\n  to {\n    opacity: var(--tw-opacity-to);\n  }\n}\n```\n\n#### Utilities\n\n- `.animate-opacity`: Enable the `opacity` animation.\n- `.opacity-from-{value}`: Sets the starting opacity (taken from [theme(opacity)](https://github.com/tailwindlabs/tailwindcss/blob/main/stubs/config.full.js#L703) or arbitrary value).\n- `.opacity-to-{value}`: Sets the ending opacity.\n\n#### Example\n\n```html\n\u003cdiv class=\"animate-opacity opacity-from-0 opacity-to-100\"\u003eHello, world!\u003c/div\u003e\n```\n\n### Shadow\n\nThe plugin defines a `from` and `to` keyframe for the `box-shadow` property, equivalent to:\n\n```css\n@keyframes shadow {\n  from {\n    box-shadow: var(--tw-shadow-from);\n  }\n  to {\n    box-shadow: var(--tw-shadow-to);\n  }\n}\n```\n\n#### Utilities\n\n- `.animate-shadow`: Enable the `box-shadow` animation.\n- `.shadow-from-{value}`: Sets the starting shadow (taken from [theme(boxShadow)](https://github.com/tailwindlabs/tailwindcss/blob/main/stubs/config.full.js#L108) or arbitrary value).\n- `.shadow-to-{value}`: Sets the ending shadow.\n\n#### Example\n\n```html\n\u003cdiv class=\"animate-shadow shadow-from-md shadow-to-lg\"\u003eHello, world!\u003c/div\u003e\n```\n\n### Transform\n\nThe plugin defines a `from` and `to` keyframe for the `transform` property with transform functions: [scale](https://tailwindcss.com/docs/scale), [rotate](https://tailwindcss.com/docs/rotate), [translate](https://tailwindcss.com/docs/translate), and [skew](https://tailwindcss.com/docs/skew), equivalent to:\n\n```css\n@keyframes transform {\n  from {\n    transform: \"translateX(var(--tw-translate-x-from, 0)) translateY(var(--tw-translate-y-from, 0)) rotate(var(--tw-rotate-from, 0)) skewX(var(--tw-skew-x-from, 0)) skewY(var(--tw-skew-y-from, 0)) scaleX(var(--tw-scale-x-from, 1)) scaleY(var(--tw-scale-y-from, 1))\";\n  }\n  to {\n    transform: \"translateX(var(--tw-translate-x-to, 0)) translateY(var(--tw-translate-y-to, 0)) rotate(var(--tw-rotate-to, 0)) skewX(var(--tw-skew-x-to, 0)) skewY(var(--tw-skew-y-to, 0)) scaleX(var(--tw-scale-x-to, 1)) scaleY(var(--tw-scale-y-to, 1))\";\n  }\n}\n```\n\n#### Utilities\n\n- `.animate-transform`: Enable the `transform` animation. All variables are set to `0` (or `1` for scale).\n- `.translate-x-from-{value}`: Sets the starting translateX (taken from [theme(translate)](https://github.com/tailwindlabs/tailwindcss/blob/main/stubs/config.full.js#L963) or arbitrary value).\n- `.translate-x-to-{value}`: Sets the ending translateX.\n- `.translate-y-from-{value}`: Sets the starting translateY.\n- `.translate-y-to-{value}`: Sets the ending translateY.\n- `.rotate-from-{value}`: Sets the starting rotate (taken from [theme(rotate)](https://github.com/tailwindlabs/tailwindcss/blob/main/stubs/config.full.js#L785) or arbitrary value).\n- `.rotate-to-{value}`: Sets the ending rotate.\n- `.skew-x-from-{value}`: Sets the starting skewX (taken from [theme(skew)](https://github.com/tailwindlabs/tailwindcss/blob/main/stubs/config.full.js#L830) or arbitrary value).\n- `.skew-x-to-{value}`: Sets the ending skewX.\n- `.skew-y-from-{value}`: Sets the starting skewY.\n- `.skew-y-to-{value}`: Sets the ending skewY.\n- `.scale-x-from-{value}`: Sets the starting scaleX (taken from [theme(scale)](https://github.com/tailwindlabs/tailwindcss/blob/main/stubs/config.full.js#L803) or arbitrary value).\n- `.scale-x-to-{value}`: Sets the ending scaleX.\n- `.scale-y-from-{value}`: Sets the starting scaleY.\n- `.scale-y-to-{value}`: Sets the ending scaleY.\n\n#### Example\n\n```html\n\u003cdiv\n  class=\"animate-transform translate-x-from-0 translate-x-to-10 rotate-from-0 rotate-to-360\"\n\u003e\n  Hello, world!\n\u003c/div\u003e\n```\n\n## License\n\nThis project is licensed under the [MIT license](LICENSE).\n\n\u003c!-- Badges --\u003e\n\n[license-badge]: https://img.shields.io/github/license/jeremy-code/tailwindcss-animate-from-to\n[npm-version-badge]: https://img.shields.io/npm/v/tailwindcss-animate-from-to\n[npm-package]: https://npmjs.com/package/tailwindcss-animate-from-to\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjeremy-code%2Ftailwindcss-animate-from-to","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjeremy-code%2Ftailwindcss-animate-from-to","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjeremy-code%2Ftailwindcss-animate-from-to/lists"}