---
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).