Edit in JSFiddle

<img id="foo" src="https://vgy.me/0AqBge.png" alt="">
img {
  transition: all 2s ease-out;
}

img.move {
  transform: scale(0.2) translate3d(200px, -800px, 0) rotate(360deg);
}
foo.onclick = function() {
  this.classList.toggle('move')
}