div.xy {
  background: orange;
  width: 100px;
  height: 100px;
  display: block;
  margin: 0 auto;
  cursor: pointer;
  transition: 1s;
}

div.xy:hover {
  transform: all rotate(360deg);
  -moz-transform: rotate(360deg);
  -webkit-transform: rotate(360deg);
  -o-transform: rotate(360deg);
}