Transform Origin

Defines the position of a transformed element.

ClassProperties
origin-centertransform-origin: center;
origin-toptransform-origin: top;
origin-top-righttransform-origin: top right;
origin-righttransform-origin: right;
origin-bottom-righttransform-origin: bottom right;
origin-bottomtransform-origin: bottom;
origin-bottom-lefttransform-origin: bottom left;
origin-lefttransform-origin: left;
origin-top-lefttransform-origin: top left;
primeflex
primeflex
primeflex
primeflex
<div class="flex flex-wrap align-items-center justify-content-center md:justify-content-between" style="min-height: 250px">
    <div class="h-6rem w-6rem bg-primary m-5 border-round">
        <img src="/images/product-placeholder-blue.svg" class="origin-center rotate-45 h-6rem w-6rem" alt="primeflex">
    </div>
    <div class="h-6rem w-6rem bg-primary m-5 border-round">
        <img src="/images/product-placeholder-blue.svg" class="origin-top-right rotate-45 h-6rem w-6rem" alt="primeflex">
    </div>
    <div class="h-6rem w-6rem bg-primary m-5 border-round">
        <img src="/images/product-placeholder-blue.svg" class="origin-bottom-left rotate-45 h-6rem w-6rem" alt="primeflex">
    </div>
    <div class="h-6rem w-6rem bg-primary m-5 border-round">
        <img src="/images/product-placeholder-blue.svg" class=" origin-left rotate-45 h-6rem w-6rem" alt="primeflex">
    </div>
</div>
 

Responsive alternatives are available for customizations based on screen size. Add the responsive breakpoint keyword followed by a semi-colon as a prefix such as md:origin-center to use a responsive class.

ClassDescription
sm:small screens e.g. phones
md:medium screens e.g. tablets
lg:large screens e.g. notebooks
xl:larger screens e.g monitors
primeflex
<div class="flex align-items-center justify-content-center" style="min-height: 250px">
    <div class="h-6rem w-6rem bg-primary border-round">
        <img src="/images/product-placeholder-yellow.svg" class="origin-top-right md:origin-bottom-left rotate-45 h-6rem w-6rem" alt="primeflex">
    </div>
</div>