<div class="wrapper">
  <p class="block block-1"><code>одна анімація</code></p>
</div>

<div class="wrapper">
  <p class="block block-2"><code>дві анімації одночасно</code></p>
</div>
body {
  line-height: 1.45;
  font-family: Ubuntu, sans-serif;
  font-size: 17px;
  color: #252525;
}

.wrapper {
  width: 45%;
  display: inline-block;
}

.block {
  padding: 16px; 
  text-align: center;
  animation-duration: 1.75s;
  animation-timing-function: linear;
  animation-delay: 2.5s;
  animation-direction: alternate;
  animation-iteration-count: infinite;
  animation-fill-mode: both; 
}

.block..block-1 {
  animation-name: jump;
}

.block.block-2 {
  animation-name: jump, color;
}

@keyframes jump {
  from {
    margin-top: 0;
  }
  to {
    margin-top: 35%;
  }
}

@keyframes color {
  from {
    background-color: #666;
    color: #f1f1f1;
  }
  to {
    background-color: #808080;
    color: #252525;
  }
}

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.