💫 CSS Spinner Generator

📐 计算公式 / 原理
参数约束:直径 ≥10px,周期 speed 秒/圈;border / dual 为 360° 旋转,bounce 为缩放呼吸,bars 为 5 根条(延迟 i × 0.1s),dots 为 3 个圆点(延迟 i × 0.2s、直径 size ÷ 2)
加载动画模板(旋转圆环、点阵等)基于 CSS @keyframes 的 rotate / scale 实现,可调尺寸、颜色与速度并复制;用于网页加载占位。

📚 深度解析:加载动画生成器

💡 常见使用场景

  • 按钮等待。
  • 页面加载。
  • 异步反馈。
生成橙色转圈

输入:尺寸 24、0.8s、橙。

处理:border 动画。

输出:CSS 与预览。

❓ 常见问题(FAQ)

能换形状?
本工具为圆环;点状用 loading-dots 类。
大小和速度怎么调?
调尺寸与 animation-duration;过大过慢都不适,中等最稳。
会保存或上传我的内容吗?
结果以浏览器实时计算为准,纯前端本地处理、数据不上传;生成的样式与代码仅作快速产出参考,正式项目请以设计系统、规范与浏览器实测为准。

Formula & Standard References

Item Formula / Note Source / Standard
Rotation an even infinite rotation of 0.6 to 1.2 seconds per turn CSS Animations Level 2
Accessible labelling expose loading with role=status or aria-busy for screen readers WAI-ARIA 1.2
Reduced motion switch to a static icon under reduced motion preferences WCAG 2.2 (2.3.3)
⚠️ 使用说明与注意事项