Search
 
SCRIPT & CODE EXAMPLE
 

CSS

css transform origin

/* Syntax */
transform-origin: y-axis x-axis z-axis|initial|inherit;

/* Example */
transform-origin: center right;

/* Possible Values

 x-axis - left, center, right, (length), (%)
 y-axis - top, center, bottom, (length), (%)
 z-axis - (length)

*/
Comment

transform origin css

/* transform origin default value is center */
img{
transition:transform 1s;
transform-origin:top; /*rotate from top  center*/
transform-origin:right; /*rotate from right middle */
transform-origin:top-right; /*rotate from top right */
transform-origin:30% 80%; /* rotate from 30% x and 80% bottom*/
transform-origin:300px 150px; /*rotate from 300px from x and 150px bottom */
}
img:hover{
 transform:rotate(45deg) /* rotate 45 deg clockwise */
}
Comment

transform-origin

transform-origin: 0 0;
transform: translate(-100%, 50%) rotate(45deg) translate(100%, -50%);
Comment

transform-origin

transform-origin: -100% 50%;
transform: rotate(45deg);
Comment

PREVIOUS NEXT
Code Example
Css :: focus selector css 
Css :: align-self in css 
Css :: css change the button text value 
Css :: box model css 
Css :: mask image css 
Css :: bootstrap 4 material icon vertical align 
Css :: multi colors in background in css 
Css :: css background image follow scroll 
Css :: how to use font awesome with tailwind css 
Css :: css for safari only 
Css :: flex justify-content 
Css :: css img src 
Css :: remove box around button when clicked 
Css :: Bootstrap default accordion arrow icon change 
Css :: css image size scale to fit 
Css :: transform multiple css 
Css :: border style css 
Css :: css combinators 
Css :: css remove second element 
Css :: SassError: Top-level selectors may not contain the parent selector "&" 
Css :: css all uppercase to capitalize 
Css :: width fit content 
Css :: how to stretch a font taller css 
Css :: Error: Could not find "stylelint-csstree-validator" 
Css :: css stripes 
Css :: writing mode css 
Css :: CSS Conic Gradients 
Css :: clearfix 
Css :: fixed table header css 
Css :: width 33 css 
ADD CONTENT
Topic
Content
Source link
Name
7+3 =