<div></div>
<div></div>
<div></div>
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  width: 100vw;
  height: 100vh;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 10px;
  padding: 10px;
  place-items: center;
}

div:nth-child(1) {
  min-height: 300px;
  min-width: 300px;
  background: url('//www.w3cplus.com/sites/default/files/blogs/2019/1905/3-1G11R02533.jpg') no-repeat;
}

div:nth-child(2) {
  min-height: 300px;
  min-width: 300px;
  background: linear-gradient(to bottom, rgba(195,62,34,1) 0%, rgba(192,171,71,1) 7%, rgba(191,191,100,1) 14%, rgba(135,190,126,1) 21%, rgba(126,190,155,1) 32%, rgba(113,190,187,1) 40%, rgba(99,147,189,1) 48%, rgba(81,124,200,1) 57%, rgba(83,63,227,1) 70%, rgba(253,45,208,1) 83%, rgba(253,45,82,1) 92%);
}

div:nth-child(3) {
  min-height: 300px;
  min-width: 300px;
  background: url('//www.w3cplus.com/sites/default/files/blogs/2019/1905/3-1G11R02533.jpg') no-repeat;
  mask-image: linear-gradient(to bottom,  #d32222 0%, #c0ab47 7%, #bfbf64 14%, #87be7e 21%, #7ebe9b 32%, #71bebb 40%, #6393bd 48%, #517cc8 57%, #533fe3 70%, #fd2dd0 83%, #fd2d52 92%);
  mask-mode: luminance;
}

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.