【问题标题】:Material ui: change duration of Skeleton animationsMaterial ui:改变骨架动画的持续时间
【发布时间】:2021-12-30 06:26:28
【问题描述】:

mui 的<Skeleton> 组件使用脉冲或波浪动画。

有没有办法加快这个动画的速度,例如通过改变持续时间?

【问题讨论】:

    标签: javascript css reactjs material-ui


    【解决方案1】:

    是的,实际上相当容易!假设您使用的是最新版本的 MUI。

    <Skeleton width={400} height={100} sx={{ animationDuration: "0.3s" }} />
    

    Read more about the SX prop here.

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2012-01-25
      • 2018-05-14
      • 1970-01-01
      • 2013-01-18
      • 2019-04-09
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多