代码拉取完成,页面将自动刷新
原来是 style.width 控制,
可以改为 CSS3 的:
<img src="https://files.jb51.net/file_images/article/201806/2018625145532581.jpg?2018525145559" />
<style>
img{
transition: transform 100ms ease;
transform:scaleX(0);
transform-origin:right;
}
</style>
参考:https://github.com/AlloyTeam/Mars/blob/master/performance/css-property-animation-performance.md