Beacon

by charmis

HTML

<div class="beacon"></div>

CSS

.beacon {
  position: absolute;
  top: 35px;
  left: 25px;
  background-color: #A268B1;
  height: 0.75em;
  width: 0.75em;
  border-radius: 50%;
  -webkit-transform: translateX(-50%) translateY(-50%);
  background: radial-gradient(circle at 1px 1px, #A268B1, #000);
}

.beacon:before {
  position: absolute;
  content: "";
  height: 0.75em;
  width: 0.75em;
  left: 100;
  top: 0;
  background-color: transparent;
  border-radius: 50%;
  box-shadow: 0px 0px 2px 2px #A268B1;
  -webkit-animation: active 2s infinite linear;
  animation: active 2s infinite linear;
}

@-webkit-keyframes active {
  0% {
    -webkit-transform: scale(.1);
    opacity: 1;
  }
  70% {
    -webkit-transform: scale(2.5);
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}

@keyframes active {
  0% {
    transform: scale(.1);
    opacity: 1;
  }
  70% {
    transform: scale(2.5);
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}