JSFiddle - React, Tailwind, and code Playground
by Glynne Turner
HTML
<div class="dark">
<h1>TITLE </h1>
<img />
</div>
<div>
this is more here
</div
CSS
div h1 {
text-align: center;
margin: 0;
font-size: 30vh;
text-transform: uppercase;
font-family: Montserrat, sans-serif;
line-height: 100vh;
}
.dark h1 {
color: white;
}
div img {
position: absolute;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;
background-attachment: fixed;
background-position: center;
background-repeat: no-repeat;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-image: url('https://i.pinimg.com/originals/02/34/d0/0234d0db1d9c4c76e99e76f1ccc85fb1.jpg');
}
.dark {
background: rgba(0, 0, 0, 0.8);
}
.dark img {
mix-blend-mode: darken;
}