--- id: css-3d-transforms title: "CSS 3D Transforms" category: "Frontend" status: "draft" verification_status: "conceptual" canonical_id: "" aliases: ["rotateX()", "rotateY()", "rotateZ()", "CSS 3D transform", "3D rotation", "perspective"] duplicate_of: "" source_trust_level: "B" confidence_score: 0.88 created_at: 2026-06-23 updated_at: 2026-06-23 review_reason: "" merge_history: [] tags: ["css", "web", "frontend", "w3schools", "transform", "3d-transform", "rotate"] raw_sources: ["https://www.w3schools.com/css/css3_3dtransforms.asp"] applied_in: [] github_commit: "" --- # [[CSS 3D Transforms]] ## 🎯 ν•œ 쀄 톡찰 (One-line insight) CSS 3D transforms let you rotate an element around its X-, Y-, or Z-axis using `rotateX()`, `rotateY()`, and `rotateZ()`, extending the `transform` property into three-dimensional space. [S1] ## 🧠 핡심 κ°œλ… (Core concepts) - **`transform` property** β€” applies a 2D or 3D transformation to an element. [S1] - **`rotateX()`** β€” rotates an element around its X-axis at a given degree. [S1] - **`rotateY()`** β€” rotates an element around its Y-axis at a given degree. [S1] - **`rotateZ()`** β€” rotates an element around its Z-axis at a given degree. [S1] ## 🧩 μΆ”μΆœλœ νŒ¨ν„΄ (Extracted patterns) - **Axis-specific rotation** β€” pick the function by axis (`rotateX`/`rotateY`/`rotateZ`) and pass an angle in degrees. [S1] - **Property + function pairing** β€” 3D effects combine the `transform` property with dedicated 3D functions, plus supporting properties such as `perspective`, `transform-style`, and `backface-visibility`. [S1] ## πŸ“– μ„ΈλΆ€ λ‚΄μš© (Details) **The CSS `rotateX()` Function** The `rotateX()` function rotates an element around its X-axis at a given degree: [S1] ```css #myDiv { transform: rotateX(150deg); } ``` **The CSS `rotateY()` Function** The `rotateY()` function rotates an element around its Y-axis at a given degree: [S1] ```css #myDiv { transform: rotateY(150deg); } ``` **The CSS `rotateZ()` Function** The `rotateZ()` function rotates an element around its Z-axis at a given degree: [S1] ```css #myDiv { transform: rotateZ(90deg); } ``` **CSS Transform Properties** The following table lists the CSS transform properties: [S1] | Property | Description | |----------|-------------| | `transform` | Applies a 2D or 3D transformation to an element | | `transform-origin` | Allows you to change the position on transformed elements | | `transform-style` | Specifies how nested elements are rendered in 3D space | | `perspective` | Specifies the perspective on how 3D elements are viewed | | `perspective-origin` | Specifies the bottom position of 3D elements | | `backface-visibility` | Defines whether or not an element should be visible when not facing the screen | **CSS 3D Transform Functions** The following table lists the 3D transform functions: [S1] | Function | Description | |----------|-------------| | `matrix3d(n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n)` | Defines a 3D transformation, using a 4x4 matrix of 16 values | | `translate3d(x,y,z)` | Defines a 3D translation | | `translateZ(z)` | Defines a 3D translation, using only the value for the Z-axis | | `scale3d(x,y,z)` | Defines a 3D scale transformation | | `scaleZ(z)` | Defines a 3D scale transformation by giving a value for the Z-axis | | `rotate3d(x,y,z,angle)` | Defines a 3D rotation | | `rotateX(angle)` | Defines a 3D rotation along the X-axis | | `rotateY(angle)` | Defines a 3D rotation along the Y-axis | | `rotateZ(angle)` | Defines a 3D rotation along the Z-axis | | `perspective(n)` | Defines a perspective view for a 3D transformed element | ## πŸ› οΈ 적용 사둀 (Applied in summary) The page applies 3D rotation to an element with id `myDiv`: `rotateX(150deg)`, `rotateY(150deg)`, and `rotateZ(90deg)`. No external project/commit applications found in the source. ## πŸ’» μ½”λ“œ νŒ¨ν„΄ (Code patterns) Rotate around each axis (language: CSS): ```css #myDiv { transform: rotateX(150deg); } #myDiv { transform: rotateY(150deg); } #myDiv { transform: rotateZ(90deg); } ``` ## βš–οΈ λͺ¨μˆœ 및 μ—…λ°μ΄νŠΈ (Contradictions & updates) No contradictions found in the source. ## βœ… 검증 μƒνƒœ 및 신뒰도 - **μƒνƒœ:** draft - **검증 단계:** conceptual (μ‹€μ œ 적용 사둀 발견 μ‹œ applied/validated둜 승격 κ°€λŠ₯) - **좜처 신뒰도:** B (W3Schools β€” widely used educational reference, not a primary standards body) - **μ‹ λ’° 점수:** 0.88 - **쀑볡 검사 κ²°κ³Ό:** μ‹ κ·œ 생성 (New discovery) ## πŸ”— 지식 κ·Έλž˜ν”„ (Knowledge Graph) - **μƒμœ„/루트:** [[CSS Tutorial]] - **κ΄€λ ¨ κ°œλ…:** [[CSS 2D Transform Scale]], [[CSS 2D Transform Skew and Matrix]], [[CSS Transitions]] - **μ°Έμ‘° λ§₯락:** Extends the 2D transform family into 3D space; pairs with perspective and backface-visibility for depth effects. ## πŸ“š 좜처 (Sources) - [S1] W3Schools β€” CSS 3D Transforms β€” https://www.w3schools.com/css/css3_3dtransforms.asp ## πŸ“ λ³€κ²½ 이λ ₯ (Change history) - 2026-06-23: Initial draft synthesized from the W3Schools "CSS 3D Transforms" page (Astra wiki-curation, P-Reinforce v3.1 format).