Skip to content
This repository has been archived by the owner on Jun 17, 2022. It is now read-only.

想知道切页的-过渡效果是如何实现的呢? #41

Open
SS-slient opened this issue May 30, 2020 · 4 comments
Open

想知道切页的-过渡效果是如何实现的呢? #41

SS-slient opened this issue May 30, 2020 · 4 comments

Comments

@SS-slient
Copy link

SS-slient commented May 30, 2020

这个项目很不错哟,感谢作者

@SS-slient SS-slient reopened this Jun 11, 2020
@su-Pro
Copy link

su-Pro commented Jun 24, 2020

在路由切换后,会渲染歌手详情页这个组件。

只需要在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)

@SS-slient
Copy link
Author

SS-slient commented Jun 24, 2020 via email

@su-Pro
Copy link

su-Pro commented Jun 24, 2020

不客气呢,之后可以关注一下我的仓库,最近也在重构这个项目,希望到时候能帮助到你哈!

@wenjianli92
Copy link

代码拉下来。页面切换进入时没动效,离开时有动效,但我见实例http://120.79.162.149:3002/#/recommend中页面进入离开都有动效的,是怎么做的,代码能更新下吗?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants