animation-duration
animation-timing-function
animation-delay
transition-duration
transition-timing-function
transition-delay
/* code for animations*/  

.animation:hover { 
  animation-duration: 0.5s; 
  animation-name: pulse; 
}

@keyframes pulse {
  from {
    transform: rotate(0deg);
  }
  to { 
    transform: rotate(-20deg);
  }
}
/* code for transitions */

.transition:hover {
  transition-duration: 0.5s;
  transform: rotate(20deg);
}

demo1 demo2