{"id":13531751,"url":"https://github.com/marcreichel/alpine-auto-animate","last_synced_at":"2025-07-29T05:34:59.892Z","repository":{"id":59625650,"uuid":"538200012","full_name":"marcreichel/alpine-auto-animate","owner":"marcreichel","description":"Alpine.js wrapper for @formkit/auto-animate.","archived":false,"fork":false,"pushed_at":"2024-05-29T14:08:27.000Z","size":57,"stargazers_count":120,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-07-14T01:06:06.497Z","etag":null,"topics":["alpinejs","alpinejs-plugin","animation","auto-animate","formkit","hacktoberfest","transition","transitions","transitions-library"],"latest_commit_sha":null,"homepage":"","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/marcreichel.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},"funding":{"github":["marcreichel"]}},"created_at":"2022-09-18T18:17:21.000Z","updated_at":"2025-07-04T15:30:41.000Z","dependencies_parsed_at":"2024-05-29T16:26:47.604Z","dependency_job_id":"25f0ef35-779d-492f-86e9-d813609d7928","html_url":"https://github.com/marcreichel/alpine-auto-animate","commit_stats":{"total_commits":6,"total_committers":1,"mean_commits":6.0,"dds":0.0,"last_synced_commit":"1bff858dbc1c95a9858166256b849c27758ecb58"},"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/marcreichel/alpine-auto-animate","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcreichel%2Falpine-auto-animate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcreichel%2Falpine-auto-animate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcreichel%2Falpine-auto-animate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcreichel%2Falpine-auto-animate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/marcreichel","download_url":"https://codeload.github.com/marcreichel/alpine-auto-animate/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcreichel%2Falpine-auto-animate/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267633679,"owners_count":24118778,"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-07-29T02:00:12.549Z","response_time":2574,"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":["alpinejs","alpinejs-plugin","animation","auto-animate","formkit","hacktoberfest","transition","transitions","transitions-library"],"created_at":"2024-08-01T07:01:05.353Z","updated_at":"2025-07-29T05:34:59.867Z","avatar_url":"https://github.com/marcreichel.png","language":"JavaScript","funding_links":["https://github.com/sponsors/marcreichel"],"categories":["Extensions \u0026 Plugins"],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003e💫 Alpine AutoAnimate 💫\u003c/h1\u003e\n\n\u003cp align=\"center\"\u003e\n  An \u003ca href=\"https://alpinejs.dev\"\u003eAlpine.js\u003c/a\u003e wrapper for \u003ca href=\"https://github.com/formkit/auto-animate\"\u003e@formkit/auto-animate\u003c/a\u003e.\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://www.npmjs.com/package/@marcreichel/alpine-auto-animate\"\u003e\n    \u003cimg src=\"https://img.shields.io/github/v/tag/marcreichel/alpine-auto-animate?label=version\" alt=\"version\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://www.npmjs.com/package/@marcreichel/alpine-auto-animate\"\u003e\n    \u003cimg src=\"https://img.shields.io/bundlephobia/minzip/%40marcreichel%2Falpine-auto-animate\" alt=\"Build size\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://www.npmjs.com/package/@marcreichel/alpine-auto-animate\"\u003e\n    \u003cimg src=\"https://img.shields.io/npm/dt/@marcreichel/alpine-auto-animate\" alt=\"downloads\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://www.jsdelivr.com/package/npm/@marcreichel/alpine-auto-animate\"\u003e\n    \u003cimg src=\"https://data.jsdelivr.com/v1/package/npm/@marcreichel/alpine-auto-animate/badge?style=rounded\" alt=\"JSDelivr\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://www.npmjs.com/package/@marcreichel/alpine-auto-animate\"\u003e\n    \u003cimg alt=\"GitHub\" src=\"https://img.shields.io/github/license/marcreichel/alpine-auto-animate\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://gitmoji.dev/\"\u003e\n    \u003cimg src=\"https://img.shields.io/badge/gitmoji-%20😜%20😍-FFDD67.svg\" alt=\"Gitmoji\"\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n## 🚀 Installation\n\n### CDN\n\nInclude the following `\u003cscript\u003e` tag in the `\u003chead\u003e` of your document, just before Alpine.\n\n```html\n\u003cscript src=\"https://cdn.jsdelivr.net/npm/@marcreichel/alpine-auto-animate@latest/dist/alpine-auto-animate.min.js\" defer\u003e\u003c/script\u003e\n```\n\n### NPM\n\n```shell\nnpm install @marcreichel/alpine-auto-animate\n```\n\nAdd the `x-auto-animate` directive to your project by importing the package **before** starting Alpine.\n\n```js\nimport Alpine from 'alpinejs';\nimport AutoAnimate from '@marcreichel/alpine-auto-animate';\n\nAlpine.plugin(AutoAnimate);\n\nAlpine.start();\n```\n\n## 🪄 Usage\n\nAdd the `x-auto-animate` directive to any element where you want to apply animations (including their direct children).\n\n```html\n\u003cul x-auto-animate\u003e\n    \u003cli\u003eLorem\u003c/li\u003e\n    \u003cli\u003eIpsum\u003c/li\u003e\n\u003c/ul\u003e\n```\n\n### Duration\n\nTo adjust the animation duration add a modifier like so:\n\n```html\n\u003cul x-auto-animate.1000ms\u003e\n    \u003c!-- ... --\u003e\n\u003c/ul\u003e\n```\n\nor\n\n```html\n\u003cul x-auto-animate.1s\u003e\n    \u003c!-- ... --\u003e\n\u003c/ul\u003e\n```\n\n### Easing function\n\nTo adjust the easing function add it as a modifier:\n\n```html\n\u003cul x-auto-animate.linear\u003e\n    \u003c!-- ... --\u003e\n\u003c/ul\u003e\n```\n\n### Toggle animations\n\nIn some situations it may be necessary to disable animations and re-enable them later.\n\nFor this you can provide a boolean to the directive like so:\n\n```html\n\u003cdiv x-data=\"{ enabled: true }\"\u003e\n    \u003cul x-auto-animate=\"enabled\"\u003e\n        \u003c!-- ... --\u003e\n    \u003c/ul\u003e\n    \u003cbutton @click=\"enabled = !enabled\" type=\"button\"\u003e\n        Toggle animations\n    \u003c/button\u003e\n\u003c/div\u003e\n```\n\n## Global config\n\nIf you are using the `npm` installation method for this package or the ESM distribution, you can use the\n`AutoAnimate.configure` method to provide a configuration:\n\n```javascript\nimport AutoAnimate from '@marcreichel/alpine-auto-animate';\n\nAlpine.plugin(AutoAnimate.configure({\n    duration: 1000,\n    easing: 'linear',\n    disrespectUserMotionPreference: true,\n}));\n```\n\n## 📄 License\n\nCopyright (c) 2022 Marc Reichel and contributors.\n\nLicensed under the MIT license, see [LICENSE](LICENSE) for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarcreichel%2Falpine-auto-animate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarcreichel%2Falpine-auto-animate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarcreichel%2Falpine-auto-animate/lists"}