css 多色旋转器
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了css 多色旋转器相关的知识,希望对你有一定的参考价值。
.spinner-outer {
position: relative;
width: 18vh;
height: 18vh;
border: solid #eee 3px;
border-radius: 50%;
}
.spinner {
position: absolute;
width: 18vh;
height: 18vh;
top: 0;
left: 0;
border-radius: 50%;
box-shadow: 0 0.6vh 0.6vh #0c2340;
-ms-animation: uil-ring-anim 1s linear infinite;
-moz-animation: uil-ring-anim 1s linear infinite;
-webkit-animation: uil-ring-anim 1s linear infinite;
-o-animation: uil-ring-anim 1s linear infinite;
animation: uil-ring-anim 1s linear infinite;
}
.reverse {
animation: uil-ring-anim-rev 1s linear infinite;
box-shadow: 0 0.6vh 0.6vh orange;
}
.green {
animation: uil-ring-anim-green 1s linear infinite;
box-shadow: 0 0.6vh 0.6vh green;
}
.teal {
animation: uil-ring-anim-teal 1s linear infinite;
box-shadow: 0 0.6vh 0.6vh teal;
}
@keyframes uil-ring-anim {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
}
@keyframes uil-ring-anim-rev {
0% {
transform: rotate(90deg);
}
100% {
transform: rotate(-270deg);
}
}
@keyframes uil-ring-anim-green {
0% {
transform: rotate(180deg);
}
100% {
transform: rotate(540deg);
}
}
@keyframes uil-ring-anim-teal {
0% {
transform: rotate(270deg);
}
100% {
transform: rotate(-90deg);
}
}
以上是关于css 多色旋转器的主要内容,如果未能解决你的问题,请参考以下文章
css 创建多色站点标题
css 用于创建多色边框的示例
CSS3多色线性渐变
css 旋转徽标(旋转器)
使用背景颜色的多色圆形div?
“~”(波浪线/波浪线/旋转)CSS 选择器是啥意思?