这篇文章主要介绍css3如何实现搜索等待动画效果,文中介绍的非常详细,具有一定的参考价值,感兴趣的小伙伴们一定要看完!
<html>
<head>
<linkrel="stylesheet"href="//at.alicdn.com/t/font_720452_mhj331xuxd8.css">
<style>
*{
margin:0;
padding:0;
}
.load-icon{
left:0;
right:0;
bottom:0;
top:0;
margin:auto;
display:flex;
justify-content:center;
align-items:center;
position:fixed;
}
.load-icon>div{
width:100px;
height:100px;
border-radius:50%;
border:8pxsolidtransparent;
border-left-color:rgba(35,196,81,1);
animation:animate1slinearinfinite;
}
.load-icon>span{
position:absolute;
color:#fff;
text-shadow:1px3px5px#333;
width:80px;
height:80px;
border:8pxsolidtransparent;
overflow:hidden;
display:flex;
justify-content:center;
align-items:center;
}
.load-icon>span>i{
font-size:50px;
animation:animate13slinearinfinite;
}
.load-icon>span>span{
font-size:50px;
animation:shadow3slinearinfinite;
color:rgba(35,196,81,1);
overflow:hidden;
position:absolute;
top:13px;
}
@keyframesanimate{
0%{transform:rotate(0deg);box-shadow:inset005pxrgba(35,196,81,.1)}
50%{box-shadow:inset005pxrgba(35,196,81,1)}
100%{transform:rotate(360deg);box-shadow:inset005pxrgba(35,196,81,.1)}
}
@keyframesanimate1{
0%{transform:translate3d(150%,0,0);}
30%{transform:translate3d(0%,0,0);}
70%{transform:translate3d(0%,0,0);}
100%{transform:translate3d(-150%,0,0);}
}
@keyframesshadow{
0%{transform:translate3d(150%,0,0);height:0%}
30%{transform:translate3d(0%,0,0);height:0%}
70%{transform:translate3d(0%,0,0);height:100%}
100%{transform:translate3d(-150%,0,0);height:100%}
}
</style>
</head>
<body>
<divclass="load-icon">
<span>
<iclass="iconfonticon-sousuo"></i>
<spanclass="iconfonticon-sousuo"></span>
</span>
<div></div>
</div>
</body>
</html>
以上是“css3如何实现搜索等待动画效果”这篇文章的所有内容,感谢各位的阅读!希望分享的内容对大家有帮助,更多相关知识,欢迎关注亿速云行业资讯频道!
免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。