vue路由左右侧滑动:
不用安装插件,自带
<template>
<transition name="slide">
<music-list :title="title" :bg-image="bgImage" :songs="songs"></music-list> //需要展示的内容
</transition>
</template>
<style scoped lang="stylus" rel="stylesheet/stylus">
.slide-enter-active, .slide-leave-active
transition: all 0.3s
.slide-enter, .slide-leave-to
transform: translate3d(100%, 0, 0)
</style>
这样就可以了。