--- id: howto-css-loading-buttons title: "How To - Loading Buttons" category: "Web_Recipes" status: "draft" verification_status: "conceptual" canonical_id: "" aliases: ["fa-spin spinner button"] duplicate_of: "" source_trust_level: "B" confidence_score: 0.8 created_at: 2026-07-04 updated_at: 2026-07-04 review_reason: "" merge_history: [] tags: ["howto", "css", "w3schools", "buttons", "icons", "loading"] raw_sources: ["https://www.w3schools.com/howto/howto_css_loading_buttons.asp"] applied_in: [] github_commit: "" --- # [[HOWTO CSS Loading Buttons]] ## 🎯 ν•œ 쀄 톡찰 (One-line insight) The entire "spinning" effect comes from Font Awesome's OWN `fa-spin` utility class, not any custom CSS animation authored in this recipe β€” `.buttonload` only handles the button's static look (background, padding, color), while the rotation itself is entirely delegated to whichever icon library is loaded, meaning this recipe demonstrates HOW to compose a third-party icon library's built-in animation utility with a custom button style, rather than teach `@keyframes` rotation from scratch. [S1] ## 🧠 핡심 κ°œλ… (Core concepts) - **`fa-spin`** β€” a Font Awesome utility class that rotates any icon continuously; combined with a spinner-shaped icon (`fa-spinner`, `fa-circle-o-notch`, `fa-refresh`) to create a loading indicator. [S1] - **`.buttonload`** β€” only styles the button's static appearance (background/padding/color/font-size); contributes NOTHING to the spin animation itself. [S1] - **Interchangeable spinner icons** β€” three different icon glyphs (`fa-spinner`, `fa-circle-o-notch`, `fa-refresh`) all combine with the SAME `fa-spin` class to produce visually different but functionally identical spinning loaders. [S1] ## πŸ“– μ„ΈλΆ€ λ‚΄μš© (Details) - ``. [S1] - `.buttonload { background-color: #04AA6D; border: none; color: white; padding: 12px 16px; font-size: 16px; }`. [S1] ## βš–οΈ λͺ¨μˆœ 및 μ—…λ°μ΄νŠΈ (Contradictions & updates) μ—†μŒ β€” μ‹ κ·œ λ ˆμ‹œν”Ό, κΈ°μ‘΄ λ¬Έμ„œμ™€ λͺ¨μˆœλ˜λŠ” λ‚΄μš© μ—†μŒ. ## πŸ› οΈ 적용 사둀 (Applied in summary) μ„œλ‘œ λ‹€λ₯Έ μŠ€ν”Όλ„ˆ μ•„μ΄μ½˜ 3개(spinner/circle-o-notch/refresh)λ₯Ό fa-spinκ³Ό κ²°ν•©ν•΄ "Loading" λ²„νŠΌ 3쒅을 λ§Œλ“œλŠ” μ˜ˆμ œκ°€ μ›λ¬Έμ—μ„œ 직접 μ œμ‹œλ¨. [S1] ## πŸ’» μ½”λ“œ νŒ¨ν„΄ (Code patterns) Loading button β€” animation comes entirely from the icon library's fa-spin utility (HTML + CSS): ```html ``` ```css .buttonload { background-color: #04AA6D; border: none; color: white; padding: 12px 16px; } ``` ## βœ… 검증 μƒνƒœ 및 신뒰도 - **μƒνƒœ:** draft - **검증 단계:** conceptual - **좜처 신뒰도:** B (W3Schools β€” widely used educational reference) - **μ‹ λ’° 점수:** 0.80 - **쀑볡 검사 κ²°κ³Ό:** μ‹ κ·œ 생성 (New discovery) ## πŸ”— 지식 κ·Έλž˜ν”„ (Knowledge Graph) - **μƒμœ„/루트:** [[W3Schools HOW TO]] - **κ΄€λ ¨ κ°œλ…:** [[HOWTO CSS Loader]], [[HOWTO CSS Icon Buttons]] - **μ°Έμ‘° λ§₯락:** CSS Buttons μ„Ήμ…˜. ## πŸ“š 좜처 (Sources) - [S1] W3Schools β€” How To - Loading Buttons β€” https://www.w3schools.com/howto/howto_css_loading_buttons.asp ## πŸ“ λ³€κ²½ 이λ ₯ (Change history) - 2026-07-04: Initial draft synthesized from the W3Schools "How To - Loading Buttons" recipe (Astra wiki-curation, P-Reinforce v3.1 format).