This is based on the examples for transform-origin on MDN

css-transforms-1

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

css-transforms-2