Showing all posts tagged #css:


iOS 滑動卡卡不順暢 scroll inside scroll

Posted on November 10th, 2017

當 overflow scroll 的區塊中有其他 overflow 是 scroll 時, iOS 裝置的滑動會卡卡的,沒有硬體的慣性滑動效果
嘗試在內層的 scroll 元件 css 加上 -webkit-overflow-scrolling: touch

Css 無線轉圈圈 loading

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>
view raw gistfile1.html hosted with ❤ by GitHub
DEMO: [JSFIDDLE](http://jsfiddle.net/aRgTP/)

Liullen

Notes from my experience.