<h2 style="position:fixed;">Scroll to see the effect.</h2>
body {
  height: 5000px;
  justify-content: center;
  display: flex;
  background-image: linear-gradient(43deg, #4158D0 0%, #C850C0 46%, #FFCC70 100%);   
}

h2 {
  color: white;
  text-shadow: 1px 1px 1px black;
}

Run Pen

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.