Change the div properties and added rotation