當 overflow scroll 的區塊中有其他 overflow 是 scroll 時, iOS 裝置的滑動會卡卡的,沒有硬體的慣性滑動效果
嘗試在內層的 scroll 元件 css 加上 -webkit-overflow-scrolling: touch
Posted on November 10th, 2017
Posted on May 9th, 2014
<html> | |
<head> | |
<style> | |
body { | |
background-color: #444; | |
} | |
@-webkit-keyframes rotating { | |
from{ | |
-webkit-transform: rotate(0deg); | |
} | |
to{ | |
-webkit-transform: rotate(360deg); | |
} | |
} | |
.rotating { | |
-webkit-animation: rotating 1s linear infinite; | |
} | |
.circle { | |
color: #444; | |
height: 32px; width: 32px; | |
display: inline-block; | |
background-color: #e8e; | |
border-radius: 50%; | |
} | |
</style> | |
</head> | |
<body> | |
<div class='rotating circle'>__</div> | |
</body> | |
</html> |
Notes from my experience.