基于vue和vue-router,使用app滑动淡入淡出的页面切换动画
feather2 install feather-components/app-transition
#or webpack
npm install feather-components/app-transitionimport Vue from 'vue';
import VueRouter from 'vue_router';
import AppTransition from 'app-transition';
Vue.use(AppTransition);
let router = new Router();
new Vue({
el: '#app',
router
});<div id="app">
<app-transition />
</div>//项目中,额外加上,因目录下的index.js使用了es6
feather.match('components/app-transition/**.js', {
parser: 'es6-babel'
});