This repository has been archived by the owner on Jun 17, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 532
想知道切页的-过渡效果是如何实现的呢? #41
Comments
在路由切换后,会渲染歌手详情页这个组件。 只需要在template中用动画把模板包起来即可,同时补上css动画,伪代码逻辑如下: <template>
<transition appear name="slide">
<music-list></music-list>
</transition>
</template> .slide-enter-active,.slide-leave-active
transition: all 0.3s
.slide-enter,.slide-leave-to
transform: translate3d(100%, 0, 0) |
感谢
…------------------ 原始邮件 ------------------
发件人: "_上校"<notifications@github.com>;
发送时间: 2020年6月24日(星期三) 上午10:24
收件人: "caijinyc/vue-music-webapp"<vue-music-webapp@noreply.github.com>;
抄送: "我是好人呀"<2830857612@qq.com>; "State change"<state_change@noreply.github.com>;
主题: Re: [caijinyc/vue-music-webapp] 想知道切页的-过渡效果是如何实现的呢? (#41)
在路由切换后,会渲染歌手详情页这个组件。
只需要在template中用动画把模板包起来即可,同时补上css动画,伪代码逻辑如下:
<template> <transition appear name="slide"> <music-list></music-list> </transition> </template>
.slide-enter-active,.slide-leave-active transition: all 0.3s .slide-enter,.slide-leave-to transform: translate3d(100%, 0, 0)
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
不客气呢,之后可以关注一下我的仓库,最近也在重构这个项目,希望到时候能帮助到你哈! |
代码拉下来。页面切换进入时没动效,离开时有动效,但我见实例http://120.79.162.149:3002/#/recommend中页面进入离开都有动效的,是怎么做的,代码能更新下吗? |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
这个项目很不错哟,感谢作者
The text was updated successfully, but these errors were encountered: