<div><img src="//www.w3cplus.com/sites/default/files/blogs/2019/1905/001.png" alt=""></div>
<div><img src="//www.w3cplus.com/sites/default/files/blogs/2019/1905/002.png" alt=""></div>
<div><img src="//www.w3cplus.com/sites/default/files/blogs/2019/1905/003.png" alt=""></div>
<div><img src="//www.w3cplus.com/sites/default/files/blogs/2019/1905/004.png" alt=""></div>
<div><img src="//www.w3cplus.com/sites/default/files/blogs/2019/1905/005.png" alt=""></div>
<div><img src="//www.w3cplus.com/sites/default/files/blogs/2019/1905/006.png" alt=""></div>
<div><img src="//www.w3cplus.com/sites/default/files/blogs/2019/1905/007.png" alt=""></div>
<div><img src="//www.w3cplus.com/sites/default/files/blogs/2019/1905/008.png" alt=""></div>
<div><img src="//www.w3cplus.com/sites/default/files/blogs/2019/1905/009.png" alt=""></div>
<div><img src="//www.w3cplus.com/sites/default/files/blogs/2019/1905/010.png" alt=""></div>
<div><img src="//www.w3cplus.com/sites/default/files/blogs/2019/1905/011.png" alt=""></div>
<div><img src="//www.w3cplus.com/sites/default/files/blogs/2019/1905/012.png" alt=""></div>
<div><img src="//www.w3cplus.com/sites/default/files/blogs/2019/1905/013.png" alt=""></div>
<div><img src="//www.w3cplus.com/sites/default/files/blogs/2019/1905/014.png" alt=""></div>
<div><img src="//www.w3cplus.com/sites/default/files/blogs/2019/1905/015.png" alt=""></div>
<div><img src="//www.w3cplus.com/sites/default/files/blogs/2019/1905/016.png" alt=""></div>
<div><img src="//www.w3cplus.com/sites/default/files/blogs/2019/1905/017.png" alt=""></div>
<div><img src="//www.w3cplus.com/sites/default/files/blogs/2019/1905/018.png" alt=""></div>
<div><img src="//www.w3cplus.com/sites/default/files/blogs/2019/1905/019.png" alt=""></div>

<div><img src="//www.w3cplus.com/sites/default/files/blogs/2019/1905/020.png" alt=""></div>
<div><img src="//www.w3cplus.com/sites/default/files/blogs/2019/1905/021.png" alt=""></div>
<div><img src="//www.w3cplus.com/sites/default/files/blogs/2019/1905/022.png" alt=""></div>
<div><img src="//www.w3cplus.com/sites/default/files/blogs/2019/1905/023.png" alt=""></div>
<div><img src="//www.w3cplus.com/sites/default/files/blogs/2019/1905/024.png" alt=""></div>
<div><img src="//www.w3cplus.com/sites/default/files/blogs/2019/1905/025.png" alt=""></div>
<div><img src="//www.w3cplus.com/sites/default/files/blogs/2019/1905/026.png" alt=""></div>
<div><img src="//www.w3cplus.com/sites/default/files/blogs/2019/1905/027.png" alt=""></div>
<div><img src="//www.w3cplus.com/sites/default/files/blogs/2019/1905/028.png" alt=""></div>
<div><img src="//www.w3cplus.com/sites/default/files/blogs/2019/1905/029.png" alt=""></div>

<div><img src="//www.w3cplus.com/sites/default/files/blogs/2019/1905/030.png" alt=""></div>
<div><img src="//www.w3cplus.com/sites/default/files/blogs/2019/1905/031.png" alt=""></div>
<div><img src="//www.w3cplus.com/sites/default/files/blogs/2019/1905/032.png" alt=""></div>
<div><img src="//www.w3cplus.com/sites/default/files/blogs/2019/1905/033.png" alt=""></div>
<div><img src="//www.w3cplus.com/sites/default/files/blogs/2019/1905/034.png" alt=""></div>
<div><img src="//www.w3cplus.com/sites/default/files/blogs/2019/1905/035.png" alt=""></div>
<div><img src="//www.w3cplus.com/sites/default/files/blogs/2019/1905/036.png" alt=""></div>
<div><img src="//www.w3cplus.com/sites/default/files/blogs/2019/1905/037.png" alt=""></div>
<div><img src="//www.w3cplus.com/sites/default/files/blogs/2019/1905/038.png" alt=""></div>
<div><img src="//www.w3cplus.com/sites/default/files/blogs/2019/1905/039.png" alt=""></div>

<div><img src="//www.w3cplus.com/sites/default/files/blogs/2019/1905/040.png" alt=""></div>
<div><img src="//www.w3cplus.com/sites/default/files/blogs/2019/1905/041.png" alt=""></div>
<div><img src="//www.w3cplus.com/sites/default/files/blogs/2019/1905/042.png" alt=""></div>
<div><img src="//www.w3cplus.com/sites/default/files/blogs/2019/1905/043.png" alt=""></div>
<div><img src="//www.w3cplus.com/sites/default/files/blogs/2019/1905/044.png" alt=""></div>
<div><img src="//www.w3cplus.com/sites/default/files/blogs/2019/1905/045.png" alt=""></div>
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  width: 100vw;
  height: 100vh;
  padding: 10px;
  background:radial-gradient(circle at 50% 60%, rgb(68, 78, 101), rgba(68, 78, 101, 0) 50%), radial-gradient(circle at 10% 10%, rgb(42, 72, 76), rgba(42, 72, 76, 0) 50%), radial-gradient(circle at 90% 10%, rgb(52, 25, 109), rgba(52, 25, 109, 0) 50%), radial-gradient(circle at 90% 90%, rgb(65, 104, 105), rgba(65, 104, 105, 0) 50%), radial-gradient(circle at 10% 90%, rgb(81, 49, 130), rgba(81, 49, 130, 0) 50%);
  color: #fff;
  text-shadow: 1px 1px 1px rgba(0,0,0,.5);
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(68px, 1fr));
  gap: 20px;
  align-items: flex-start;
}

img {
  border: 1px solid #fefefe;
  padding: 2px;
  border-radius: 4px;
}

div:nth-child(2n):hover img{
  cursor: pointer;
  filter: brightness(0) invert(1); 
}

div:nth-child(2n+1):hover img {
  filter: brightness(0);
  cursor: pointer;
}
View Compiled

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.