VUE2.0单元素或组件的过渡

情景:插件从右向左滑动,巧用translate3d

.food
position :fixed
left : 0
top :0
bottom :48px
z-index :30
width :100%
background-color :#fff
transform :translated3d(0,0,0)
&.move-enter-active,&.move-leave-active
transition :all 0.4s linear
&.move-enter,&.move-leave-to
transform :translate3d(100%,0,0)
05-04 06:04