<style>
*{
margin: 0;
padding: 0;
}
body {
display: flex;
justify-content: center;
align-items: center;
padding-top: 50px;
background: #000;
}
.load {
position: relative;
width: 150px;
height: 150px;
border-radius: 50%;
background: linear-gradient(45deg,transparent,transparent,40%,#28e);
animation:animate 1s linear infinite;
color: white;
}
@keyframes animate {
0% {
transform: rotate(0deg);
filter:hue-rotate(0deg);
}
100%{
transform: rotate(360deg);
filter:hue-rotate(360deg)
}
}
.load::before {
content:'';
position: absolute;
top: 6px;
left: 6px;
bottom: 6px;
right: 6px;
background: #000;
border-radius: 50%;
z-index: 99;
}
.load::after {
content:'';
position: absolute;
top: 0;
left: 0;
bottom: 0;
right: 0;
background: linear-gradient(45deg,transparent,transparent,transparent,#28e);
border-radius: 50%;
z-index: 1;
filter:blur(20px);
}
</style>
<div class="load"></div>
CSS3酷炫加載動畫
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.