Skew Transform
The skew() transform tilts an element along the horizontal axis, the vertical axis, or both — creating a parallelogram-like distortion.
Syntax
transform: skew(x-angle, y-angle). skewX(angle) and skewY(angle) skew on a single axis. Angles are in deg (or other angle units).
Common Uses
- Diagonal section dividers without images
- Decorative headline accents
- Dynamic, energetic UI effects
Skewing Parent vs Child
A common pattern skews a parent element then counter-skews the child to keep the content upright.