Skip to content

nbonamy/vue-hero-transition

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Vue Hero Transition

Description

Custom transitions between routes based on "hero" content.

Demo: http://bonamy.fr/vue-hero-transition/

Usage

import Hero from 'vue-hero-transition';
Vue.use(Hero);

Wrap your view-router with HeroTransition:

<HeroTransition>
  <router-view></router-view>
</HeroTransition>

Then wrap elements on source and target routes with Hero. Required attribute tag should match:

<Hero tag="tag">
...
</Hero>

Parameters

HeroTransition accepts the following parameters:

NamePurposeDefault
duration Transition duration in CSS format 500ms
backSupport Enable transition on router.pop true

About

Custom transition between routes based on "hero" content.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published