Description
v-shared-element is a Vue.js plugin that adds shared-element transitions between pages. You add the v-shared-element directive with a namespace to an element on one page, and use the same namespace on an element on the next page, and the element animates between the two. It works with Vue 2 and Vue 3 through vue-router, and with Nuxt, where it is added as a module in nuxt.config. A v-for list can give each item its own namespace with dynamic directive arguments, and keep-alive routes need an extra setup that the docs describe. Options can be set globally or per element, including easing, duration, endDuration, zIndex, compositeOnly, includeChildren, ignoreTransparency, restrictToViewport and restrictToRoutes. The transitions are built on the illusory library. The plugin is installed from npm or loaded from a CDN. The README includes an example page and notes that Vue 3 is supported with backwards compatibility for Vue 2. The source is public on GitHub.…
Highlights
- Shared-element transitions with a Vue directive
- Works with Vue 2, Vue 3 and Nuxt
- Global and per-element options
- Supports v-for lists and keep-alive routes
- Installable from npm or a CDN
Ratings & Reviews
No ratings yet
Be the first to rate V Shared Element.
People also visit
V Shared Element FAQ
What is v-shared-element?
A Vue.js plugin that animates an element from one page to a matching element on another page.
How do I install it?
Install it from npm or load it from a CDN, then register the plugin with Vue and vue-router, or add it as a Nuxt module.
Which Vue versions does it support?
Vue 3, with backwards compatibility for Vue 2, according to the v3.1.0 note in the README.
Can I change the timing?
Yes. Options such as duration, endDuration and easing can be set globally or on each element.
Is it open source?
Yes. The source and issue tracker are public on GitHub.
What are the best V Shared Element alternatives?
Popular alternatives to V Shared Element include SSGOI, Vue Page Stack and Next Transition Router. See all V Shared Element alternatives














