<progress max="100" value="0"></progress>
<div class="container">
  <section>
    <p>Scroll to add some color to your life!🎨</p>
  </section>
  <section>
    <p>You're doing great, keep going😘</p>
  </section>
  <section>
    <p>Keep scrolling just a little more πŸƒβ€β™€οΈ</p>
  </section>
  <section>
    <p>Here you go!<br>Did you like it?🌈</p>
  </section>
</div>
progress {
  position: fixed;
  top: 0;
  left: 0;
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 15px;
  border: none;
  background: transparent;
}
progress::-webkit-progress-bar {
  background: transparent;
}
progress::-webkit-progress-value {
  background: linear-gradient(to left, #db38b5,#01b3e3,#25ce7b,#fdc741,#ff6b01,#fc4236);
  background-attachment: fixed;
}
progress::-moz-progress-bar {
  background: linear-gradient(to left, #db38b5,#01b3e3,#25ce7b,#fdc741,#ff6b01,#fc4236);
  background-attachment: fixed;
}

body {
  background: linear-gradient(to bottom,
    desaturate(lighten(#db38b5, 30%), 30%),
    desaturate(lighten(#01b3e3, 30%), 30%),
    desaturate(lighten(#25ce7b, 30%), 30%),
    desaturate(lighten(#fdc741, 30%), 30%),
    desaturate(lighten(#ff6b01, 30%), 30%),
    desaturate(lighten(#fc4236, 30%), 30%)
  );
}
section {
  min-height: 100vh;
  padding: 10vw 5vh;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}
p {
  margin: 0;
  font-size: 24px;
  font-size: #{'max(18px, min(90px, 10vw))'};
  font-family: 'Permanent Marker', cursive;
  line-height: 1.2;
}
View Compiled
gsap.registerPlugin(ScrollTrigger);
gsap.to('progress', {
  value: 100,
  ease: 'none',
  scrollTrigger: { scrub: 0.3 }
});

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

  1. https://cdn.jsdelivr.net/npm/gsap@3.3.4/dist/gsap.min.js
  2. https://cdn.jsdelivr.net/npm/gsap@3.3.4/dist/ScrollTrigger.js