JSFiddle - React, Tailwind, and code Playground

HTML

<body>
    <br>lorem<br>lorem<br>lorem<br>lorem<br>
<div id="outerspace">
<div class="rocket">
<img src="http://www.the-art-of-web.com/images/rocket.gif" width="92" height="215" alt="rocket animation">
</div>
</div>

CSS

#outerspace {
    position: relative; 
    height: 400px; 
    background: #0c0440 url(http://www.the-art-of-web.com/images/outerspace.jpg);
  }
  div.rocket {
    position: absolute;
    bottom: 10px;
    left: 20px;
    -webkit-transition: all 3s ease-in;
    -moz-transition: all 3s ease-in;
    -o-transition: all 3s ease-in;
  }
  div.rocket img {
    -webkit-transition: all 2s ease-in-out;
    -moz-transition: all 2s ease-in-out;
    -o-transition: all 2s ease-in-out;
  }
  body:hover div.rocket {
    -webkit-transform: translate(540px,-200px);
    -moz-transform: translate(540px,-200px);
    -o-transform: translate(540px,-200px);
  }
  body:hover div.rocket img {
    -webkit-transform: rotate(70deg);
    -moz-transform: rotate(70deg);
    -o-transform: rotate(70deg);
  }