JSFiddle - React, Tailwind, and code Playground

by Darren Galway

HTML

<div class="cool"></div>

SCSS

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

.cool {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: yellow;
  position: relative;

  &:hover {
    background: red;
  }

  &::after,
  &::before {
    position: absolute;
    border-radius: 50%;
  }

 &::after {
   width: 50px;
   height: 50px;
   background: pink;
   content: '';
   left: 150px;
 }

 &::before {
  width: 50px;
   height: 50px;
   background: orange;
   content: '';
   right: 150px;
 }
}