JSFiddle - React, Tailwind, and code Playground

by Darren Galway

HTML

<button class="button">JOIN THE THING</button>

SCSS

$_shadow: rgba(0, 0, 0, .3);
$_timing: 2200ms;
$_easing: ease-in-out;

body {
  background: #eee;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.button {
  animation: pulse $_timing $_easing infinite;
  min-width: 150px;
  display: block;
  border: 0;
  padding: 1rem 2rem;
}

@keyframes pulse {
  0% {
    box-shadow: none;
  }
  
  25% {
    box-shadow: 0 0 10px $_shadow;
  }
  
  50% {
    box-shadow: none;
  }
  
  75% {
    box-shadow: 0 0 20px $_shadow;
  }
  
  100% {
    box-shadow: none;
  }
}