{"id":25774440,"url":"https://github.com/markusand/entreacte","last_synced_at":"2025-06-11T06:06:44.037Z","repository":{"id":239256719,"uuid":"799029984","full_name":"markusand/entreacte","owner":"markusand","description":"Create fancy enter/leave animations in page elements, when switching between vue-router views.","archived":false,"fork":false,"pushed_at":"2024-05-11T15:48:56.000Z","size":101,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-29T18:57:17.259Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"isc","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/markusand.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-05-11T02:05:28.000Z","updated_at":"2024-07-29T19:08:04.000Z","dependencies_parsed_at":"2024-05-11T03:23:57.693Z","dependency_job_id":"6dade67a-36f1-4e55-8a21-386fcde7fefe","html_url":"https://github.com/markusand/entreacte","commit_stats":null,"previous_names":["markusand/entreacte"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markusand%2Fentreacte","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markusand%2Fentreacte/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markusand%2Fentreacte/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markusand%2Fentreacte/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/markusand","download_url":"https://codeload.github.com/markusand/entreacte/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markusand%2Fentreacte/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259211835,"owners_count":22822378,"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":[],"created_at":"2025-02-27T05:29:58.881Z","updated_at":"2025-06-11T06:06:44.020Z","avatar_url":"https://github.com/markusand.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Entreacte. Vue 3 router animations\n\nCreate fancy enter/leave animations in page elements, when switching between vue-router views.\n\nEntreacte is the catalan word for *Entr'acte*, a pause between two parts of a stage production where curtains are being closed for set or costume changes.\n\n[![NPM](https://img.shields.io/npm/v/entreacte)](https://npmjs.org/package/entreacte)\n[![NPM](https://img.shields.io/bundlephobia/minzip/entreacte)](https://npmjs.org/package/entreacte)\n[![NPM](https://img.shields.io/npm/l/entreacte)](https://npmjs.org/package/entreacte)\n\n![Entreacte for Vue 3](https://github.com/markusand/entreacte/assets/12972543/96f2efde-1a74-418b-8efe-fb99c871e300)\n\n## Usage\n\nInstall the Entreacte plugin, passing the router object as a parameter and optional global options.\n\n```bash\nnpm i entreacte\n```\n\n```js\nimport router from './router';\nimport entreacte from 'entreacte';\n\napp.use(entreacte, { router });\n```\n\nImport default animations or create your own. Fade animation is imported by default. Animations are a pair of `*-enter` and `*-leave` steps.\n\n```js\nimport 'entreacte/dist/animate/reveal.css;\n```\n\n```css\n@keyframes mycustom-enter {\n  from {\n    opacity: 0;\n    transform: rotate(180deg) translateX(100%) scale(0.5);\n  }\n\n  to {\n    opacity: 1;\n    transform: none;\n  }\n}\n\n@keyframes mycustom-leave {\n  from {\n    opacity: 1;\n    transform: none;\n  }\n\n  to {\n    opacity: 0;\n    transform: rotate(360deg) translate(-100%, 50%) scale(1.5);\n  }\n}\n```\n\nAssign an animation to any element by defining custom data attributes or a vue directive instead.\nOther parameters such as duration and delay, both for enter and leave steps, can be defined using argument or a deep nested object as value.\n\n```html\n\u003cdiv v-entreacte[:animation] /\u003e\n\u003cdiv v-entreacte=\"options\" /\u003e\n```\n\n## Examples\n\n```html\n\u003c!-- Use reveal animation width defaults for all steps --\u003e\n\u003cimg v-entreacte:reveal src=\"path.js\"\u003e\n\n\u003c!-- Use fade animation with 2s delay --\u003e\n\u003cimg v-entreacte=\"{ animation: 'fade', delay: '2s' }\" src=\"path.jpg\"\u003e\n\n\u003c!-- Use different animations for enter/leave steps --\u003e\n\u003cimg\n  v-entreacte=\"{\n    enter: 'fade',\n    leave: 'reveal',\n  }\"\n  src=\"path.jpg\"\u003e\n\n\u003c!-- Advanced configuration --\u003e\n\u003cimg\n   src=\"path.jpg\"\n   v-entreacte=\"{\n     enter: {\n       animation: 'fade',\n       duration: '2s',\n       delay: '0s',\n     },\n     leave: {\n       duration: '2s',\n       delay: '0s',\n     },\n   }\"\u003e\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarkusand%2Fentreacte","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarkusand%2Fentreacte","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarkusand%2Fentreacte/lists"}