CSS3如何利用粒子旋转伸缩加载动画
2020-03-13 16:00:40来源:爱站网 阅读 ()
我们经常可以在网站上看到各式各样的动画效果,比如有常见的用粒子旋转伸缩,那么你知道CSS3如何利用粒子旋转伸缩加载动画吗?下面我们就一起去就就吧。
- #loader6?{?? ??
- ??margin:?60px?50px;?? ??
- ??float:?left;?? ??
- ??font-size:?90px;?? ??
- ??text-indent:?-9999em;?? ??
- ??overflow:?hidden;?? ??
- ??width:?1em;?? ??
- ??height:?1em;?? ??
- ??border-radius:?50%;?? ??
- ??position:?relative;?? ??
- ??-webkit-animation:?load6?1.7s?infinite?ease;?? ??
- ??animation:?load6?1.7s?infinite?ease;?? ??
- ?}?? ??
- ?@-webkit-keyframes?load6?{?? ??
- ????0%?{?? ??
- ??????-webkit-transform:?rotate(0deg);?? ??
- ??????transform:?rotate(0deg);?? ??
- ??????box-shadow:?-0.11em?-0.83em?0?-0.4em?#ff0000,?-0.11em?-0.83em?0?-0.42em?#ff0000,?? ??
- ??????????????????-0.11em?-0.83em?0?-0.44em?#ff0000,?-0.11em?-0.83em?0?-0.46em?#ff0000,?? ??
- ??????????????????-0.11em?-0.83em?0?-0.477em?#ff0000;?? ??
- ??????}?? ??
- ????5%,?? ??
- ????95%?{?? ??
- ??????box-shadow:?-0.11em?-0.83em?0?-0.4em?#ff0000,?-0.11em?-0.83em?0?-0.42em?#ff0000,?? ??
- ??????????????????-0.11em?-0.83em?0?-0.44em?#ff0000,?-0.11em?-0.83em?0?-0.46em?#ff0000,?? ??
- ??????????????????-0.11em?-0.83em?0?-0.477em?#ff0000;?? ??
- ????}?? ??
- ????30%?{?? ??
- ??????box-shadow:?-0.11em?-0.83em?0?-0.4em?#ff0000,?-0.51em?-0.66em?0?-0.42em?#ff0000,?? ??
- ??????????????????-0.75em?-0.36em?0?-0.44em?#ff0000,?-0.83em?-0.03em?0?-0.46em?#ff0000,?? ??
- ??????????????????-0.81em?0.21em?0?-0.477em?#ff0000;?? ??
- ????}?? ??
- ????55%?{?? ??
- ??????box-shadow:?-0.11em?-0.83em?0?-0.4em?#ff0000,?-0.29em?-0.78em?0?-0.42em?#ff0000,?? ??
- ??????????????????-0.43em?-0.72em?0?-0.44em?#ff0000,?-0.52em?-0.65em?0?-0.46em?#ff0000,?? ??
- ??????????????????-0.57em?-0.61em?0?-0.477em?#ff0000;?? ??
- ????}?? ??
- ????100%?{?? ??
- ??????-webkit-transform:?rotate(360deg);?? ??
- ??????transform:?rotate(360deg);?? ??
- ??????box-shadow:?-0.11em?-0.83em?0?-0.4em?#ff0000,?-0.11em?-0.83em?0?-0.42em?#ff0000,?? ??
- ??????????????????-0.11em?-0.83em?0?-0.44em?#ff0000,?-0.11em?-0.83em?0?-0.46em?#ff0000,?? ??
- ??????????????????-0.11em?-0.83em?0?-0.477em?#ff0000;?? ??
- ????}?? ??
- ?}?? ??
- @keyframes?load6?{?? ??
- ??0%?{?? ??
- ????-webkit-transform:?rotate(0deg);?? ??
- ????transform:?rotate(0deg);?? ??
- ????box-shadow:?-0.11em?-0.83em?0?-0.4em?#ff0000,?-0.11em?-0.83em?0?-0.42em?#ff0000,?? ??
- ????????????????-0.11em?-0.83em?0?-0.44em?#ff0000,?-0.11em?-0.83em?0?-0.46em?#ff0000,?? ??
- ????????????????-0.11em?-0.83em?0?-0.477em?#ff0000;?? ??
- ????}?? ??
- ??5%,?? ??
- ??95%?{?? ??
- ????box-shadow:?-0.11em?-0.83em?0?-0.4em?#ff0000,?-0.11em?-0.83em?0?-0.42em?#ff0000,?? ??
- ????????????????-0.11em?-0.83em?0?-0.44em?#ff0000,?-0.11em?-0.83em?0?-0.46em?#ff0000,?? ??
- ????????????????-0.11em?-0.83em?0?-0.477em?#ff0000;?? ??
- ??}?? ??
- ??30%?{?? ??
- ????box-shadow:?-0.11em?-0.83em?0?-0.4em?#ff0000,?-0.51em?-0.66em?0?-0.42em?#ff0000,?? ??
- ????????????????-0.75em?-0.36em?0?-0.44em?#ff0000,?-0.83em?-0.03em?0?-0.46em?#ff0000,?? ??
- ????????????????-0.81em?0.21em?0?-0.477em?#ff0000;?? ??
- ??}?? ??
- ??55%?{?? ??
- ????box-shadow:?-0.11em?-0.83em?0?-0.4em?#ff0000,?-0.29em?-0.78em?0?-0.42em?#ff0000,?? ??
- ????????????????-0.43em?-0.72em?0?-0.44em?#ff0000,?-0.52em?-0.65em?0?-0.46em?#ff0000,?? ??
- ????????????????-0.57em?-0.61em?0?-0.477em?#ff0000;?? ??
- ??}?? ??
- ??100%?{?? ??
- ????-webkit-transform:?rotate(360deg);?? ??
- ????transform:?rotate(360deg);?? ??
- ????box-shadow:?-0.11em?-0.83em?0?-0.4em?#ff0000,?-0.11em?-0.83em?0?-0.42em?#ff0000,?? ??
- ????????????????-0.11em?-0.83em?0?-0.44em?#ff0000,?-0.11em?-0.83em?0?-0.46em?#ff0000,?? ??
- ????????????????-0.11em?-0.83em?0?-0.477em?#ff0000;?? ??
- ??}?? ??
- }?? ??
上文介绍的是CSS3如何利用粒子旋转伸缩加载动画的内容,本文运用CSS3的旋转Transform属性和动画的执行百分比制作而成,是很特别的CSS3实现粒子旋转伸缩加载动画。
原文链接:https://js.aizhan.com/web_authoring/css/12063.html
如有疑问请与原作者联系
标签:
版权申明:本站文章部分自网络,如有侵权,请联系:west999com@outlook.com
特别注意:本站所有转载文章言论不代表本站观点,本站所提供的摄影照片,插画,设计作品,如需使用,请与原作者联系,版权归原作者所有
下一篇:HTML 字符实体详情
- ie8下透明度处理 2020-06-11
- CSS3 2020-06-05
- css:css3(圆角边框、盒子阴影、文字阴影) 2020-06-05
- 如果是自学WEB前端的话,该如何才能找到一份7K实习生工作呢 2020-06-04
- 前端如何学习? 2020-06-04
IDC资讯: 主机资讯 注册资讯 托管资讯 vps资讯 网站建设
网站运营: 建站经验 策划盈利 搜索优化 网站推广 免费资源
网络编程: Asp.Net编程 Asp编程 Php编程 Xml编程 Access Mssql Mysql 其它
服务器技术: Web服务器 Ftp服务器 Mail服务器 Dns服务器 安全防护
软件技巧: 其它软件 Word Excel Powerpoint Ghost Vista QQ空间 QQ FlashGet 迅雷
网页制作: FrontPages Dreamweaver Javascript css photoshop fireworks Flash