【问题标题】:React transform transition group issues. Want to do an easy animation, but doesn't workReact 转换转换组问题。想做一个简单的动画,但是不行
【发布时间】:2021-01-05 16:12:48
【问题描述】:

一切都按照文档http://reactcommunity.org/react-transition-group/transition

这是一个代码框,我想要的一切都是悬停在标题上-> header__curtain 向下滑动。

https://codesandbox.io/s/awesome-platform-x9cug?file=/src/styles.css

【问题讨论】:

    标签: reactjs animation react-transition-group


    【解决方案1】:

    我知道这不是一个真正的答案,但会建议您使用更直观且易于理解的 framer-motion,同时与 react 过渡组不同,它还能保持代码相当干净。

    【讨论】:

      猜你喜欢
      • 2019-12-09
      • 1970-01-01
      • 2021-11-08
      • 2011-02-02
      • 1970-01-01
      • 1970-01-01
      • 2014-02-19
      • 2011-02-08
      • 2021-10-25
      相关资源
      最近更新 更多