--- id: css-2d-transform-skew-and-matrix title: "CSS 2D Transform Skew and Matrix" category: "Frontend" status: "draft" verification_status: "conceptual" canonical_id: "" aliases: ["skew()", "skewX()", "skewY()", "matrix()", "CSS skew", "2D matrix transform"] 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", "2d-transform", "skew", "matrix"] raw_sources: ["https://www.w3schools.com/css/css3_2dtransforms_skew.asp"] applied_in: [] github_commit: "" --- # [[CSS 2D Transform Skew and Matrix]] ## π― ν μ€ ν΅μ°° (One-line insight) The `skewX()`, `skewY()`, and `skew()` functions slant an element along the X- and/or Y-axis by a given angle, while `matrix()` combines all 2D transform methods (translate, rotate, scale, skew) into one six-value declaration. [S1] ## π§ ν΅μ¬ κ°λ (Core concepts) - **`skewX()`** β skews an element along the X-axis by the given angle. [S1] - **`skewY()`** β skews an element along the Y-axis by the given angle. [S1] - **`skew()`** β skews an element along both the X- and Y-axis; if the second parameter is omitted it defaults to zero. [S1] - **`matrix()`** β combines all the 2D transform methods into one, taking six parameters in the order `matrix(scaleX(), skewY(), skewX(), scaleY(), translateX(), translateY())`. [S1] ## π§© μΆμΆλ ν¨ν΄ (Extracted patterns) - **Angular slant** β skew functions take angle values (`deg`); `skew(ax, ay)` slants along both axes at once. [S1] - **Unified transform** β `matrix()` packs scale, skew, and translate into a single function call for compact combined transforms. [S1] ## π μΈλΆ λ΄μ© (Details) **The CSS `skewX()` Function** The `skewX()` function skews an element along the X-axis by the given angle. The following example skews the `