Toggle navigation
☰
Home
HTML
CSS
Scripting
Database
<!DOCTYPE html> <title>My Example</title> <style> .scaled { transform: perspective(500px) scaleZ(7) rotateX(45deg); margin-left: 40px; } </style> <img src="/pix/samples/9s.jpg" alt="Sample image"> <img class="scaled" src="/pix/samples/9s.jpg" alt="Sample image"> <p>Using the default <code>transform-origin</code>, the image rotates from its center point.</p>