JSFiddle - React, Tailwind, and code Playground

HTML

<div class="test left">
testing something
</div>

CSS

.test {
  position: fixed;
  background: green;
  color: #fff;
  top: 0;
  left: 0;
}

.left {
  left: -100%;
}