$n: 3;

.animated {
  .attempt_to_kill_player {
    #gun {
      animation-name: gunAnimation;
      animation-duration: 3s;
      animation-iteration-count: infinite;
      transform-origin: 5879px 5696px;
      animation-direction: reverse;
      animation-timing-function: cubic-bezier(0.84, 1.84, 0.59, 0.72);
    }
  }
}

@keyframes gunAnimation {
  0% {
    transform: rotate(0deg);
  }
  50% {
    transform: rotate(#{$n * 360}deg);
  }
  100% {
    transform: rotate(#{$n * 360}deg);
  }
}
