<template>
  <div class="sunshine">
    <div v-for="i in 3" :key="i" class="glow"></div>
  </div>
</template>

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

  .glow {
    position: absolute;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.9) 0%, transparent 70%);
    animation: move 6s infinite alternate ease-in-out;
  }

  .glow:nth-child(1) {
    top: 10%;
    left: 10%;
    animation-duration: 4s;
  }
  .glow:nth-child(2) {
    top: 50%;
    left: 30%;
    animation-duration: 5s;
  }
  .glow:nth-child(3) {
    top: 70%;
    left: 60%;
    animation-duration: 6s;
  }

  @keyframes move {
    from {
      transform: translate(0, 0);
      opacity: 1;
    }
    to {
      transform: translate(10px, -10px);
      opacity: 0.5;
    }
  }
</style>
