/* CSS3 Loading Animation Example */
@keyframes spinner {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
}
.loader {
border: 16px solid #f3f3f3; /* Light grey */
border-top: 16px solid #3498db; /* Blue */
border-radius: 50%;
width: 120px;
height: 120px;
animation: spinner 2s linear infinite;
}
/* Explanation:
- The @keyframes rule defines the animation sequence.
- The .loader class styles a div to look like a spinning circle.
- The border properties create a circular shape with a colored top border.
- The animation property applies the spinner keyframes to the loader, making it rotate infinitely.
*/
上一篇:css 显示省略号
下一篇:css initial
Laravel PHP 深圳智简公司。版权所有©2023-2043 LaravelPHP 粤ICP备2021048745号-3
Laravel 中文站