此效果涉及到 :css
1. css 畫圖形html
2. css3 動態效果css3
3. 貝塞爾曲線 用法spa
<style>
.lds-hourglass {
display: inline-block;
position: relative;
width: 72px;
height: 72px
}3d
.lds-hourglass:after {
content: " ";
display: block;
border-radius: 50%;
width: 0;
height: 0;
margin: 6px;
box-sizing: border-box;
border: 36px solid #ff8686;
border-color: #ffabab transparent #35999e;
animation: lds-hourglass 1.2s infinite
}orm
@keyframes lds-hourglass {
0% {
transform: rotate(0);
animation-timing-function: cubic-bezier(.55,.055,.675,.19)
}htm
50% {
transform: rotate(900deg);
animation-timing-function: cubic-bezier(.215,.61,.355,1)
}blog
100% {
transform: rotate(1800deg)
}
}
</style>get
<div class="lds-hourglass"></div>animation
擴展:3d轉換