--- id: css-2d-transform-scale title: "CSS 2D Transform Scale" category: "Frontend" status: "draft" verification_status: "conceptual" canonical_id: "" aliases: ["scale()", "scaleX()", "scaleY()", "CSS scale", "2D scale transform", "resize element"] duplicate_of: "" source_trust_level: "B" confidence_score: 0.89 created_at: 2026-06-23 updated_at: 2026-06-23 review_reason: "" merge_history: [] tags: ["css", "web", "frontend", "w3schools", "transform", "2d-transform", "scale"] raw_sources: ["https://www.w3schools.com/css/css3_2dtransforms_scale.asp"] applied_in: [] github_commit: "" --- # [[CSS 2D Transform Scale]] ## 🎯 ν•œ 쀄 톡찰 (One-line insight) The CSS `scale()` family of 2D transform functions increases or decreases the size of an element according to the parameters given for width and height, where values above 1 enlarge and values between 0 and 1 shrink. [S1] ## 🧠 핡심 κ°œλ… (Core concepts) - **`scale()`** β€” increases or decreases the size of an element (according to the parameters given for the width and height). [S1] - **`scaleX()`** β€” increases or decreases the width of an element. [S1] - **`scaleY()`** β€” increases or decreases the height of an element. [S1] - **Multiplier semantics** β€” numeric multipliers greater than 1 enlarge the element; values between 0 and 1 reduce it. [S1] ## 🧩 μΆ”μΆœλœ νŒ¨ν„΄ (Extracted patterns) - **Proportional resize** β€” `scale(x, y)` takes two factors: the first scales width, the second scales height. [S1] - **Single-axis resize** β€” use `scaleX(n)` to resize width only, or `scaleY(n)` to resize height only. [S1] ## πŸ“– μ„ΈλΆ€ λ‚΄μš© (Details) **The CSS `scale()` Function** The `scale()` function increases or decreases the size of an element (according to the parameters given for the width and height). The following example increases the `
` element to two times of its original width, and three times of its original height: [S1] ```css div { transform: scale(2, 3); } ``` The next example decreases the `
` element to be half of its original width and height: [S1] ```css div { transform: scale(0.5, 0.5); } ``` **The CSS `scaleX()` Function** The `scaleX()` function increases or decreases the width of an element. The following example increases the `
` element to two times of its original width: [S1] ```css div { transform: scaleX(2); } ``` This example decreases the `
` element to be half of its original width: [S1] ```css div { transform: scaleX(0.5); } ``` **The CSS `scaleY()` Function** The `scaleY()` function increases or decreases the height of an element. The following example increases the `
` element to three times of its original height: [S1] ```css div { transform: scaleY(3); } ``` This example decreases the `
` element to be half of its original height: [S1] ```css div { transform: scaleY(0.5); } ``` ## πŸ› οΈ 적용 사둀 (Applied in summary) The page's own demonstrations apply scaling to a `
`: enlarging (`scale(2, 3)`, `scaleX(2)`, `scaleY(3)`) and shrinking (`scale(0.5, 0.5)`, `scaleX(0.5)`, `scaleY(0.5)`). No external project/commit applications found in the source. ## πŸ’» μ½”λ“œ νŒ¨ν„΄ (Code patterns) Two-axis scale (language: CSS): ```css div { transform: scale(2, 3); } ``` Single-axis scale: ```css div { transform: scaleX(2); } div { transform: scaleY(3); } ``` ## βš–οΈ λͺ¨μˆœ 및 μ—…λ°μ΄νŠΈ (Contradictions & updates) No contradictions found in the source. ## βœ… 검증 μƒνƒœ 및 신뒰도 - **μƒνƒœ:** draft - **검증 단계:** conceptual (μ‹€μ œ 적용 사둀 발견 μ‹œ applied/validated둜 승격 κ°€λŠ₯) - **좜처 신뒰도:** B (W3Schools β€” widely used educational reference, not a primary standards body) - **μ‹ λ’° 점수:** 0.89 - **쀑볡 검사 κ²°κ³Ό:** μ‹ κ·œ 생성 (New discovery) ## πŸ”— 지식 κ·Έλž˜ν”„ (Knowledge Graph) - **μƒμœ„/루트:** [[CSS Tutorial]] - **κ΄€λ ¨ κ°œλ…:** [[CSS 2D Transforms Skew]], [[CSS 3D Transforms]], [[CSS Transitions]] - **μ°Έμ‘° λ§₯락:** Part of the CSS 2D transforms family; used to resize elements without changing their layout box flow. ## πŸ“š 좜처 (Sources) - [S1] W3Schools β€” CSS 2D Transform Scale β€” https://www.w3schools.com/css/css3_2dtransforms_scale.asp ## πŸ“ λ³€κ²½ 이λ ₯ (Change history) - 2026-06-23: Initial draft synthesized from the W3Schools "CSS 2D Transform Scale" page (Astra wiki-curation, P-Reinforce v3.1 format).