<html>
<head>
<style>
#div1
{
width:120px;
height:100px;
background-color:yellow;
border:1px solid black;
transform:rotateY(25deg);
transform:rotateY(25deg); /* Safari and Chrome */
transform:rotateY(25deg); /* Firefox */
}
</style>
<script>
function rotate(value)
{
document.getElementById('div1').style.webkitTransform="rotateY(" + value + "deg)";
document.getElementById('div1').style.MozTransform="rotateY(" + value + "deg)";
document.getElementById('div1').style.transform="rotateY(" + value + "deg)";
document.getElementById('span1').innerHTML=value + "deg";