title: CSS background image w/ rotate, repeat and opacity
body: <p>I am trying to make a nice background with an image but I want the image repeated to fill the screen, with opacity set to 0.5 and it rotated 45 degrees. I have tried a number of things to accomplish this but have had no luck. Anyone have any ideas?</p>
  
  <p>In this Codepen, I have the image rotated and opaque but cannot get background-repeat to work.</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-css lang-css prettyprint-override"><code>.background {
    height: 500px;
    width: 500px;
    position: relative;
    display: inline-block;
    padding: 100px;
    border: black 3px solid;
  }
  
  .background::before {
    content: "";
    position: absolute;
    overflow: hidden;
    width: 100px;
    height: 100px;
    left: 0;
    top: 0;
    z-index: -1;
    opacity: 0.5;
    background: url(https://cambridgewords.files.wordpress.com/2019/11/funny.jpg);
    background-size: contain;
    transform: rotate(45deg);
    background-repeat: repeat;
    opacity: 0.5;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;span class='background'&gt;HElloWorld&lt;/span&gt;</code></pre>
  </div>
  </div>
  </p>