.nb-float-up,
.nb-float-down {
  display: flex;
  flex-direction: column;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

.nb-float-up {
  animation-name: nb-float-up;
}

.nb-float-down {
  animation-name: nb-float-down;
}

.nb-float-up img,
.nb-float-down img {
  display: block;
}

@keyframes nb-float-up {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(0, -50%, 0);
  }
}

@keyframes nb-float-down {
  from {
    transform: translate3d(0, -50%, 0);
  }
  to {
    transform: translate3d(0, 0, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .nb-float-up,
  .nb-float-down {
    animation: none;
  }
}

