weui icon indicating copy to clipboard operation
weui copied to clipboard

Loading Toast 的实现

Open yjcxy12 opened this issue 10 years ago • 4 comments

看到源码实现是12个leaf,给每个leaf设animation。 是否可以定下每个leaf的opacity,然后给parent设置rotating animation 并使用step function。

yjcxy12 avatar Jan 22 '16 10:01 yjcxy12

@yjcxy12 这个实现巧妙,但是实测菊花转动的过程中会抖动,看能不能解决这个问题?

progrape avatar Feb 01 '16 12:02 progrape

请问是在哪个浏览器出现这种问题?

yjcxy12 avatar Feb 01 '16 17:02 yjcxy12

PC 的 Chrome、iPhone 6 测试效果也会有抖动的情况,可能是 transform-origin 位置的问题

progrape avatar Feb 02 '16 03:02 progrape

使用 transform-origin: left 1px 0; 效果最好,和 .weui_loading_leaf 的 top: -1px 有关。

yjcxy12 avatar Feb 02 '16 10:02 yjcxy12