origin-center/top/left/bottom-right… — the pivot for scale/rotate. This family contains 9 generated classes in Nakshora 3.1.
Classes#
| Class | Generated CSS |
|---|---|
origin-center | transform-origin: center; |
origin-top | transform-origin: top; |
origin-top-right | transform-origin: top right; |
origin-right | transform-origin: right; |
origin-bottom-right | transform-origin: bottom right; |
origin-bottom | transform-origin: bottom; |
origin-bottom-left | transform-origin: bottom left; |
origin-left | transform-origin: left; |
origin-top-left | transform-origin: top left; |
Example#
example
<div class="origin-bottom-left rotate-12">Pivoted</div>Responsive & variants#
Every class here accepts screen prefixes (xxs: … 5xl:) and state variants — md:hover:p-4 style stacks compile to a single media query. See responsive/index|Responsive design and variants/index|Variants.
Best practices#
- Dropdown pop-ins want origin-top
Related#
utilities/transitions/transition-property|Transitions · utilities/animations/keyframes|Animations
