💫 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 實現,可調尺寸、顏色與速度並複製;用於網頁載入佔位。
📚 深度解析:載入動畫生成器
💡 常見使用場景
- 按鈕等待。
- 頁面載入。
- 非同步反饋。
生成橙色轉圈
❓ 常見問題(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) |
⚠️ 使用說明與注意事項
- 本工具純前端執行,資料不會上傳到伺服器
- 建議在主流瀏覽器(Chrome/Safari/Firefox/Edge)中使用
- 計算結果僅供參考,請以實際應用場景為準