CSS 加载动画生成器
无需 JavaScript,只用 CSS 就能制作加载动画。提供 6 种样式,可自由调整颜色、大小和速度,并直接复制 HTML + CSS 到项目里。
这里所有的加载动画都是纯 CSS — 不用 GIF、不用 SVG,也不用 JS 动画库。关键帧只改 transform 与 opacity,因此能用 GPU 加速,即使在繁忙的页面上也很流畅。请加上 role='status' 和 aria-label,让屏幕阅读器能读出加载状态。
使用方法
无需 JavaScript,只用 CSS 就能制作加载动画。提供 6 种样式,可自由调整颜色、大小和速度,并直接复制 HTML + CSS 到项目里。
- 1Pick a loader style. Spinner is the safe default; pulse and dots are friendlier; ripple draws attention if you want to interrupt.
- 2Set your brand color. The default indigo is a placeholder — match the loader to a primary CTA color so it reads as part of your UI rather than a stock widget.
- 3Adjust size for context. 32–48px works inside buttons, 64–80px for inline page loaders, 100px+ only when the loader is the page (full-screen splash).
- 4Tune speed. Under 0.6s feels frantic; 0.8–1.2s is the sweet spot; over 1.5s starts to feel like the page is broken. Faster ≠ better.
- 5Click Copy. The output bundles the HTML markup and the CSS — paste into your stylesheet and drop the <div class='loader'> wherever you need it.
主要功能
- Six distinct loader styles — spinner, dual-ring, dots, bars, pulse, ripple — covering every common UI need
- Live preview that updates as you change color, size, speed, and stroke thickness
- Outputs ready-to-paste HTML + CSS — no JS, no SVG, no GIF, no external library
- GPU-friendly keyframes (transform/opacity only) so the animation stays smooth on busy pages
- Built-in role='status' and aria-label so the loader is accessible to screen readers out of the box