JSFiddle - React, Tailwind, and code Playground

by Harsh Kansagara

HTML

<div class="loader"></div>

CSS

*,
*:after,
*:before {
  box-sizing: border-box;
}

.loader {
  width: 24px;
  height: 24px;
  border: 3px solid rgba(0, 0, 0, 0.5);
  position: relative;
}

.loader:after {
  display: block;
  position: absolute;
  content: "";
  margin:auto;
  width: 24px;
  height: 24px;
  border-width: 3px;
  border-style: solid;
  border-color: transparent transparent rgba(0, 0, 0, 0.7) rgba(0, 0, 0, 0.7);
}