Animation How to - Create css3 transform rotate








Question

We would like to know how to create css3 transform rotate.

Answer


<!DOCTYPE html>
<html>
<head>
<style type='text/css'>
body {<!--from w  w  w  .j a  va 2 s  .  com-->
    margin: 30px
}
.deneme {
    width: 50px;
    height: 50px;
    background-color: #06F;
    color: #fff;
    border: 2px solid #000;
    -moz-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    -o-transform: rotate(45deg);
    -webkit-transform: rotate(45deg);
    transform: rotate(45deg)
}
  </style>
</head>
<body>
  <div class="deneme">
</div>
</body>
</html>

The code above is rendered as follows: