<template>
  <Teleport to="body">
    <div class="scroll-icon"></div>
  </Teleport>
</template>

<script setup>
defineOptions({
  name: "mouse-tips",
});
</script>
<style>
.scroll-icon {
  opacity: 1;
  z-index: 10;
  position: absolute;
  bottom: 1em;
  left: 50%;
  margin-left: -0.6em;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 2em;
  width: 1.2em;
  font-size: 22px;
  color: rgba(255, 255, 255, 0.5);
  border-radius: 2em;
  border: solid 2px;
  transition: 0.4s;
  &::before {
    content: "";
    display: inline-block;
    width: 5px;
    height: 5px;
    background-color: #fff;
    border-radius: 50%;
    animation: scroll-icon 2.2s infinite cubic-bezier(0.75, 0.05, 0.36, 1);
  }
}

@keyframes scroll-icon {
  0% {
    transform: translateY(-12px);
    opacity: 0;
  }

  30%,
  70% {
    opacity: 1;
  }
  100% {
    transform: translateY(12px);
    opacity: 0;
  }
}
</style>
