您可以使用变换和过渡来处理动画:(将鼠标悬停在圆圈上)
#count{
position:relative;
border-radius:50%;
overflow:hidden;
line-height:200px;
width:200px;
text-align:center;
background:#000;
color:#fff;
z-index:1;
}
#count span{
position:absolute;
top:0; left:0;
width:100%; height:100%;
background: red;
z-index:-1;
transform:scaleY(0.001);
transition:transform 3s;
transform-origin:50% 100%;
}
#count:hover span{
transform:scaleY(1);
}Run Code Online (Sandbox Code Playgroud)
<div id="count">100%<span></span></div>Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
1911 次 |
| 最近记录: |