Show Output
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>Example of CSS3 transform-origin Property</title> <style> img { /* Chrome, Safari, Opera */ -webkit-transform: rotate(30deg); -webkit-transform-origin: 25% bottom; /* Firefox */ -moz-transform: rotate(30deg); -moz-transform-origin: 25% bottom; /* IE 9 */ -ms-transform: rotate(30deg); -ms-transform-origin: 25% bottom; /* Standard syntax */ transform: rotate(30deg); transform-origin: 25% bottom; } .box{ margin: 50px; width:120px; height:110px; background: url("/examples/images/star-fish-transparent.png") no-repeat; } </style> </head> <body> <div class="box"> <img src="/examples/images/star-fish.png" alt="Star Fish"> </div> </body> </html>