# CSS transform: translate, rotate, scale and transform-origin

DevFeed: [CSS transform: translate, rotate, scale and transform-origin](<https://devfeed.tech/articles/css-transform-translate-rotate-scale-and-transform-origin-116066.md>)

Original publisher: [Read original article](<https://markodenic.com/css-transform/>)

Author: Marko

Published: 2026-11-04T09:00:00Z

Content type: article

Language: en

Sources: [Marko Denic Blog](<https://devfeed.tech/sources/marko-denic-blog.md>)

Topics: [CSS](<https://devfeed.tech/topics/css.md>), [web animation](<https://devfeed.tech/topics/web-animation.md>), [Front end](<https://devfeed.tech/topics/frontend.md>)

Tags: [3d](<https://devfeed.tech/tags/3d.md>), [animations](<https://devfeed.tech/tags/animations.md>), [css](<https://devfeed.tech/tags/css.md>), [order](<https://devfeed.tech/tags/order.md>), [properties](<https://devfeed.tech/tags/properties.md>), [scale](<https://devfeed.tech/tags/scale.md>), [tutorial](<https://devfeed.tech/tags/tutorial.md>), [web-development](<https://devfeed.tech/tags/web-development.md>)

## AI overview

CSS transforms move, rotate, scale or skew an element visually while leaving its original layout space reserved, so surrounding elements do not move. The article explains that transform functions apply left to right, affecting the coordinate system used by later functions; separate `translate`, `rotate` and `scale` properties instead apply in a fixed order and can be changed or animated independently. `transform-origin` sets the pivot for rotation and scaling. For 3D effects, use parent `perspective`, preserve depth where needed, and hide a flipped card's back face. Practical caveats: plain inline elements need `inline-block`; later `transform` declarations replace earlier ones; transforms create a containing block for fixed-position children and a stacking context. The article recommends animating `transform` and `opacity` to avoid layout recalculation.

## Source excerpt

How CSS transform works: translate, rotate, scale and skew, the individual translate/rotate/scale properties, why order matters, transform-origin, 3D transforms, and smooth animations.