CSS Transform
ELI5 — The Vibe Check
CSS Transform lets you rotate, scale, skew, and move elements without messing up the page layout. It's like picking up a sticker and tilting it — the sticker moves but the page underneath stays perfectly still. The layout doesn't even know it happened.
Real Talk
CSS transform applies 2D and 3D geometric transformations to elements without affecting document flow. Functions include translate(), rotate(), scale(), and skew(). Transforms are composited on the GPU, making them ideal for performant animations.
Show Me The Code
.card:hover {
transform: translateY(-4px) scale(1.02);
}
When You'll Hear This
"Use transform: translate instead of changing top/left for smooth animations" / "The 3D card flip effect uses CSS transform with perspective"
Related Terms
CSS Animations
CSS animations let you make things move, spin, fade, and bounce using only CSS — no JavaScript needed.
GPU Acceleration
GPU acceleration is when the browser offloads rendering work to your graphics card instead of making the CPU do everything.
Will-Change
Will-change is like telling the browser 'heads up, I'm about to animate this thing.' The browser pre-allocates resources so the animation is smooth.