css3加载动画loading
2017-09-26 10:30
316 查看
<!--html--> <div class="spinner"><i></i></div>
/*css*/ .spinner {display: inline-block; vertical-align: middle;margin-right: 0.4em;font-size: 1em;width: 1em;height: 1em;text-align: left;border-radius: 50%;box-shadow: inset 0 0 0 .1em rgba(58, 168, 237, .3);} .spinner i { position: absolute; clip: rect(0, 1em, 1em, .5em); width: 1em; height: 1em; animation: spinner-circle-clipper 1s ease-in-out infinite; -webkit-animation: spinner-circle-clipper 1s ease-in-out infinite; } @keyframes spinner-circle-clipper { 0% { transform: rotate(0deg); } 100% { transform: rotate(180deg); } } @-webkit-keyframes spinner-circle-clipper { 0% { -webkit-transform: rotate(0deg); } 100% { -webkit-transform: rotate(180deg); } } .spinner i:after { position: absolute; clip: rect(0, 1em, 1em, .5em); width: 1em; height: 1em; content: ''; animation: spinner-circle 1s ease-in-out infinite; -webkit-animation: spinner-circle 1s ease-in-out infinite; border-radius: 50%; box-shadow: inset 0 0 0 .1em #3aa8ed; } @keyframes spinner-circle { 0% { transform: rotate(-180deg); } 100% { transform: rotate(180deg); } } @-webkit-keyframes spinner-circle { 0% { -webkit-transform: rotate(-180deg); } 100% { -webkit-transform: rotate(180deg); } }
相关文章推荐
- css3实现三种不同的loading加载动画效果
- 使用CSS3实现超炫的Loading(加载)动画效果
- prefix css3漏斗Loading加载动画
- html+css3实现简单加载动画,loading实现
- 16款纯CSS3实现的loading加载动画
- 使用 CSS3 实现超炫的 Loading(加载)动画效果
- 【求解】CSS3动画loading加载
- 使用 CSS3 实现超炫的 Loading(加载)动画效果
- 2款不同样式的CSS3 Loading加载动画 附源码
- 10个样式各异的CSS3 Loading加载动画
- 8款使用 CSS3 实现超炫的 Loading(加载)的动画效果
- 纯CSS3加载Loading动画图 12款创意设计
- 使用 CSS3 实现超炫的 Loading(加载)动画效果
- 使用 CSS3 实现超炫的 Loading(加载)动画效果
- 使用 CSS3 实现超炫的 Loading(加载)动画效果
- CSS3实现Loading加载动画特效大全
- 使用 CSS3 实现超炫的 Loading(加载)动画效果
- 使用CSS3实现超炫的Loading(加载)动画效果
- 使用 CSS3 实现超炫的 Loading(加载)动画效果以及cs3的在线制作工具