Syntax

transform-origin

Setting the origin for an element’s transformations.

Overview

ClassDeclarations
transform-origin:`value`transform-origin: `value`;
transform:`offset-x`|`offset-y`transform: `offset-x` `offset-y`;
transform:`offset-x`|`offset-y`|`offset-z`transform: `offset-x` `offset-y` `offset-z`;
transform:toptransform-origin: top;
transform:bottomtransform-origin: bottom;
transform:righttransform-origin: right;
transform:lefttransform-origin: left;
transform:centertransform-origin: center;

Apply conditionally

Apply styles based on different states using selectors and conditional queries.

<div class="transform-origin:center:hover transform-origin:center@sm transform-origin:center@dark transform-origin:center@print">…</div>

  • Master UI


© 2025 Aoyue Design LLC.MIT License
Trademark Policy