{"id":13387960,"url":"https://github.com/repairearth/vue-router-transition","last_synced_at":"2025-03-13T13:32:11.116Z","repository":{"id":96452437,"uuid":"63770564","full_name":"repairearth/vue-router-transition","owner":"repairearth","description":"A page transition plugin for vue-router","archived":false,"fork":false,"pushed_at":"2017-02-13T03:41:13.000Z","size":430,"stargazers_count":110,"open_issues_count":6,"forks_count":22,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-10-29T10:45:20.470Z","etag":null,"topics":[],"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/repairearth.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":"2016-07-20T09:54:49.000Z","updated_at":"2024-09-16T10:30:07.000Z","dependencies_parsed_at":"2023-06-10T19:30:51.958Z","dependency_job_id":null,"html_url":"https://github.com/repairearth/vue-router-transition","commit_stats":null,"previous_names":["weinot/vue-router-transition"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/repairearth%2Fvue-router-transition","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/repairearth%2Fvue-router-transition/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/repairearth%2Fvue-router-transition/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/repairearth%2Fvue-router-transition/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/repairearth","download_url":"https://codeload.github.com/repairearth/vue-router-transition/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243414497,"owners_count":20287130,"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":"2024-07-30T13:00:21.859Z","updated_at":"2025-03-13T13:32:10.855Z","avatar_url":"https://github.com/repairearth.png","language":"JavaScript","funding_links":[],"categories":["实用库"],"sub_categories":[],"readme":"# **【Deprecated】** ~~vue-router-transition~~\n\n[![npm](https://img.shields.io/npm/v/vue-router-transition.svg?style=flat)](https://www.npmjs.com/package/vue-router-transition)\n[![npm](https://img.shields.io/npm/dt/vue-router-transition.svg?style=flat)](https://www.npmjs.com/package/vue-router-transition)\n\nA page transition plugin for vue-router [demo](http://vnot.me/vue-router-transition/)\n\n## Usage\n\n```js\n...\nimport VueRouter from 'vue-router'\nimport VueRouterTransition from 'vue-router-transition'\n...\n\n// install router\nVue.use(VueRouter)\nVue.use(VueRouterTransition, VueRouter)\n\n// in app.vue, apply directive `v-r-transition`\n\u003crouter-view class=\"view\" transition v-r-transition keep-alive\u003e\u003c/router-view\u003e\n\n// or\n\n\u003crouter-view \n  class=\"view\" \n  transition \n  v-r-transition=\"{forward: 'slideFromRightToLeft', back: 'slideFromLeftToRight'}\" \n  keep-alive\u003e\n\u003c/router-view\u003e\n\nVue.transition('slideFromRightToLeft', {})\nVue.transition('slideFromLeftToRight', {})\n```\n\n## Your CSS\n```css\n.view {\n  transition: all .5s ease;\n}\n\n/* v-r-transition, default is {forward: 'forward', back: 'back'}*/\n.forward-enter, .forward-leave {\n  transform: translate3d(-100%, 0, 0);\n}\n.back-enter, .back-leave {\n  transform: translate3d(100%, 0, 0);\n}\n```\n\n## Page level transition\nFor page level transition, define custom field `$$routerTransition` in the route config\n```js\n'/message': {\n  component: require('./views/subroutes/sr2.vue'),\n  $$routerTransition: {\n    forward: 'roll',\n    back: 'roll'\n  }\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frepairearth%2Fvue-router-transition","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frepairearth%2Fvue-router-transition","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frepairearth%2Fvue-router-transition/lists"}