CodePen

HTML

            
              <img src="http://lorempixel.com/200/200">
            
          
!

↑ Insert the most common viewport meta tag

CSS

            
              img { 
  display: block; 
  margin: 20px auto;
  cursor: pointer;
  
  &:active {
    animation: vibrate 0.1s infinite;
  }
}

@keyframes vibrate {
  50% { transform: rotate(1deg) translateX(1px); }
  100% { transform: rotate(-1deg) translateX(-1px); }
}
            
          
!
? ?
? ?
Must be a valid URL.
+ add another resource
via CSS Lint

JS

            
              
            
          
!
Must be a valid URL.
+ add another resource
via JS Hint
Loading ..................