JSFiddle - React, Tailwind, and code Playground

by sc0rp10

HTML

<div class="w">
  <div class="bg"></div>
  <div class="g"></div>
  <div class="t">hello, world</div>
</div>

CSS

body {
  margin: 0;
  background-color: #336699;
}
.w {
  position: relative;
  height: 300px;
  background-image: url(https://i1-profile-877088.c.cdn77.org/uploads/pictures/58ffbdbb80088.jpg);
  background-size: cover;
}

.g {
  top: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at center, rgba(0,0,0,0) 0%,rgba(0,0,0,1) 100%);
  position: absolute;
  /*clip: rect(0, 50px, 100px, 0);*/
}
.t {
  width: 100%;
  height: 100%;
  text-align: center;
  color: #fff;
  line-height: 300px;
  font-size: 50px;
  text-transform: uppercase;
  position: relative;
  z-index: 42;
}