JSFiddle - React, Tailwind, and code Playground

HTML

<div class="container">
    <div class="badge">
        <div class="badge-text">
              <span class=" text1">TEXT 1</span>
              <br>
              <span>TEXT 2 </span>
              <br/>
              <span class="text3">TEXT 3</span>
        </div>
    </div>  
</div>

CSS

.container{
   height: 1500px;
   background-color:gray;
   
 }
 .badge {
 position: fixed;
  width: 270px;
  height: 100px;
  text-align: left;
  background-color: green;
  overflow: hidden;
  z-index: 1020;
  right: -6%;
  top: 30%;
  }
  .badge .badge-text {
  position: absolute;
  color: #ffffff;
}
.badge .text1, .badge .text3 {
  font-weight: bold;
  font-size: 1rem;
}

.badge .text3 {
  font-style: italic;
  font-size: 0.7rem;
}