Drag the origin point on the canvas, watch rotate & scale pivot from different points. An interactive transform-origin: Titik Putar Transform playground…
A clock hand, a dropdown opening from its button, a card tilting from a corner, an SVG icon turning in place: all of it is about one point. Knowing where that point is measured from (the element’s box, not the page; in SVG, its viewport) keeps animations attached where they belong.
The origin moves the pin, not the element
transform-origin moves the element Alone it does nothing to the layout. It only sets the still point for transform. With no rotate/scale/skew, changing the origin has no effect.% is relative to the element’s size, not the page 0% 0% = the element’s top-left corner, 100% 100% = its bottom-right. A point outside the element is fine: use px or a percentage above 100%.transform-origin: top (or top right when the button is on the right) so the menu seems to come out of its button, not bloom from mid-air.transform-origin: 0 0 and transform-box: view-box. Write transform-box: fill-box; transform-origin: center; so the point is the shape’s own centre.transform: none, then change the origin The pin moves, but the element’s centre moves 0 px: an origin alone does nothing.50% 200% The pin leaves the element and its shadows orbit it. Percentages still come from the element’s size.view-box and fill-box With view-box, center is the SVG’s centre; with fill-box, the stamp’s own.