⌘ K
esc

    Rotate

    Rotates an element based on a given degree.

    Classes
    Class Properties
    rotate-90 transform: rotate(90deg);
    -rotate-90 transform: rotate(-90deg);
    rotate-180 transform: rotate(180deg);
    -rotate-180 transform: rotate(-180deg);
    Examples
    primeflex
    primeflex
    primeflex
    primeflex
    
    <div class="card">
        <div class="flex flex-wrap align-items-center justify-content-center md:justify-content-between card-container blue-container">
            <div class="h-6rem w-6rem m-5">
                <img src="./assets/images/rotate-placeholder-blue.svg" class="rotate-90 h-6rem w-6rem" alt="primeflex">
            </div>
            <div class="h-6rem w-6rem m-5">
                <img src="./assets/images/rotate-placeholder-blue.svg" class="-rotate-90 h-6rem w-6rem" alt="primeflex">
            </div>
            <div class="h-6rem w-6rem m-5">
                <img src="./assets/images/rotate-placeholder-blue.svg" class="rotate-180 h-6rem w-6rem" alt="primeflex">
            </div>
            <div class="h-6rem w-6rem m-5">
                <img src="./assets/images/rotate-placeholder-blue.svg" class="-rotate-180 h-6rem w-6rem" alt="primeflex">
            </div>
        </div>
    </div>
    
    
    Responsive

    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:rotate-90 to use a responsive class.

    • 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="card">
        <div class="flex align-items-center justify-content-center card-container yellow-container">
            <div class="h-6rem w-6rem">
                <img src="./assets/images/rotate-placeholder-yellow.svg" class="rotate-90 md:-rotate-90 h-6rem w-6rem" alt="primeflex">
            </div>
        </div>
    </div>