JSFiddle - React, Tailwind, and code Playground

by LOOnny

HTML

<div class="wrap"  touch-action="manipulation">
  <div class="trig"></div>
</div>

CSS

html,
body {
  margin: 0;
  padding: 0;
  background: #242424;
}

.wrap {
  width: 100px;
  height: 100px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  position: relative;
}

.trig  {
  width: 200%;
  height: 200%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.trig::before {
  content: '';
  width: 30px;
  height: 30px;
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(255, 255, 255, 0.6);
}