Met a ios There is a tearing problem when you drag and drop an image , The initial positioning is due to the animation resulting in frequent rendering of composite layers , On old machines because of ios Rendering strategy is different from Android ? As a result of
still canvas Good! , Don't worry about compatibility o(╥﹏╥)o
It doesn't feel very useful ... The fastest way to change your cell phone ... Or change canvas, ios Upper bug That's too much ...
http://fouber.github.io/test/layer/
https://www.codenong.com/cs105690386/
https://dzone.com/articles/front-end-performance-optimization-with-accelerate
https://zhuanlan.zhihu.com/p/88288584
https://www.cnblogs.com/dashnowords/p/11885045.html
https://www.jianshu.com/p/24b8bd4ed9c0
https://blog.poetries.top/browser-working-principle/guide/part5/lesson24.html
https://zhuanlan.zhihu.com/p/79881310
https://cloud.tencent.com/developer/article/1558723
https://fed.taobao.org/blog/taofed/do71ct/performance-composite/
http://jartto.wang/2017/09/29/expand-on-performance-composite/
https://juejin.im/post/6844903966573068301
https://www.codenong.com/cs105690386/
translateZ It will generate a composite layer
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Document</title>
</head>
<style>
.wrap {
}
.box {
width: 100px;
height: 100px;
background: deepskyblue;
margin: 10px 0;
transform: translateZ(0);
}
</style>
<body>
<div class="wrap">
<div class="box"></div>
<div class="box"></div>
<div class="box"></div>
<div class="box"></div>
</div>
</body>
</html>
Even with z-index and absolute, will change Not good either.