<template>
  <div class="clouds">
    <div class="cloud cloud-1"></div>
    <div class="cloud cloud-2"></div>
  </div>
</template>

<style lang="scss" scoped>
  .clouds {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    pointer-events: none;
  }

  .cloud {
    position: absolute;
    background: white;
    border-radius: 50%;
    opacity: 0.3;
    animation: float 60s linear infinite;
  }

  .cloud:before {
    content: '';
    position: absolute;
    top: 50%;
    left: 5%;
    transform: translate(-50%, -50%);
    width: 36px;
    height: 36px;
    background: #fff;
    border-radius: 50%;
    box-shadow: #fff 22px -15px 0 6px, #fff 57px -6px 0 2px, #fff 87px 4px 0 -4px, #fff 33px 6px 0 6px,
      #fff 61px 6px 0 2px, #ccc 29px -23px 0 6px, #ccc 64px -14px 0 2px, #ccc 94px -4px 0 -4px;
  }

  .cloud-1 {
    top: 20%;
    left: -100px;
    animation-duration: 45s;
  }

  .cloud-2 {
    top: 60%;
    left: -150px;
    animation-duration: 60s;
  }

  @keyframes float {
    0% {
      transform: translateX(0);
    }
    100% {
      transform: translateX(500px);
    }
  }
</style>
