Laravel  
laravel
文档
数据库
架构
入门
php技术
    
Laravelphp
laravel / php / java / vue / mysql / linux / python / javascript / html / css / c++ / c#

css3 loading

作者:戮尽逆者   发布日期:2025-04-07   浏览:80

/* 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

大家都在看

css 红色

css文字超长省略号

css 渐变字体

css背景图片等比例缩放

css文字删除线

css 自定义滚动条

css flex gap

css上一个兄弟元素怎么找到

css文字超出隐藏变省略号鼠标上去展示完整

css文字不允许换行

Laravel PHP 深圳智简公司。版权所有©2023-2043 LaravelPHP 粤ICP备2021048745号-3

Laravel 中文站