title: How to make an icon move up and down with CSS animation
body: <p>So I need to make a plane icon float like <a href="https://giphy.com/gifs/MCiNxURMvvgiN3xVQq" rel="nofollow noreferrer">this</a>. I need to make it only with CSS animation, no JS. I have no idea how to make it fly upwards and downwards. I attached some code that I wrote.</p>
  
  <p>html</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-css lang-css prettyprint-override"><code>.button-block {
      display: flex;
      justify-content: center;
  }
  .block-button-1 {
      text-align: center;
      border-radius: 35px;
      color: white;
      font-size: 21px;
      border: none;
      height: 75px;
      width: 330px;
      background-color: #4b9cdb;
      border-color: #bbdcff;
      box-shadow: 0px 0 15px #bbdcff;
  }
  
  .button-image {
      position: fixed;
      height: 30px;
      width: 30px;
      margin: 24px 0 0 -130px;
      animation: 2s ease infinite;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div class="button-block"&gt;
          &lt;img class="button-image" src="images/plane.png"&gt;
          &lt;button class="block-button-1"&gt;Забронировать полёт&lt;/button&gt;
      &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>