CSS Scroll Shadows!

Adjust the controls (👇) and see the CSS scroll shadows change

Scroll down and watch the CSS scroll shadows disappear/appear...

.scrollGradient {
  background: 
    linear-gradient(#8892ef 30%, rgba(136,146,239, 0)),
    linear-gradient(rgba(136,146,239, 0), #8892ef 70%) 0 100%,
    radial-gradient(farthest-side at 50% 0, rgba(34,34,34, 0.5), rgba(0,0,0,0)),
    radial-gradient(farthest-side at 50% 100%, rgba(34,34,34, 0.5), rgba(0,0,0,0)) 0 100%;
  background-color: #8892ef;
  background-repeat: no-repeat;
  background-attachment: local, local, scroll, scroll;
  background-size: 100% 30px, 100% 30px, 100% 15px, 100% 15px;
}

If you want to learn how this works check this article by Lea Verou.

Watch out! As Felix Leupold pointed out, the CSS above doesn't work in latest Mobile Safari anymore.