.cell
  .car-wetness.zaz
  .rain-effects-container
    .drop
    .drop
    .drop
    .drop
    .drop
    .drop
    .drop
    .drop
    .drop
    .drop
    .drop
    .drop
    .drop
    .drop
    .drop
    .drop
    .drop
    .drop
    .drop
    .drop
    .drop
  img(src="https://i.imgur.com/TctYSX3.png", class="car" alt="zaz")
  
.cell
  .car-wetness.cooper
  .rain-effects-container
    .drop
    .drop
    .drop
    .drop
    .drop
    .drop
    .drop
    .drop
    .drop
    .drop
    .drop
    .drop
    .drop
    .drop
    .drop
    .drop
    .drop
    .drop
    .drop
    .drop
    .drop
  img(src="https://i.imgur.com/Go8E6J1.png", class="car" alt="cooper")
View Compiled
.rain-effects-container {
  height: 100px;
  width: 100px;
  position: relative;
}

.rain-effects-container .drop {
  opacity: 0;
  position: absolute;
  height: 15px;
  width: 1px;
  border-radius: 1px;
  background: linear-gradient(to bottom, transparent, lightblue);
  animation: rain-drop 0.3s linear infinite;
  z-index: 1;
}

.rain-effects-container .drop:nth-child(1) { left: 5px; animation-delay: 1.540s; }
.rain-effects-container .drop:nth-child(2) { left: 10px; animation-delay: 0.595s; }
.rain-effects-container .drop:nth-child(3) { left: 15px; animation-delay: 2.515s; }
.rain-effects-container .drop:nth-child(4) { left: 20px; animation-delay: 1.333s; }
.rain-effects-container .drop:nth-child(5) { left: 25px; animation-delay: 2.452s; }
.rain-effects-container .drop:nth-child(6) { left: 30px; animation-delay: 3.195s; }
.rain-effects-container .drop:nth-child(7) { left: 35px; animation-delay: 4.254s; }
.rain-effects-container .drop:nth-child(8) { left: 40px; animation-delay: 1.955s; }
.rain-effects-container .drop:nth-child(9) { left: 45px; animation-delay: 2.342s; }
.rain-effects-container .drop:nth-child(10) { left: 50px; animation-delay: 2.936s; }
.rain-effects-container .drop:nth-child(11) { left: 55px; animation-delay: 3.431s; }
.rain-effects-container .drop:nth-child(12) { left: 60px; animation-delay: 5.296s; }
.rain-effects-container .drop:nth-child(13) { left: 65px; animation-delay: 3.054s; }
.rain-effects-container .drop:nth-child(14) { left: 70px; animation-delay: 2.915s; }
.rain-effects-container .drop:nth-child(15) { left: 75px; animation-delay: 1.496s; }
.rain-effects-container .drop:nth-child(16) { left: 80px; animation-delay: 3.535s; }
.rain-effects-container .drop:nth-child(17) { left: 85px; animation-delay: 4.212s; }
.rain-effects-container .drop:nth-child(18) { left: 90px; animation-delay: 3.515s; }
.rain-effects-container .drop:nth-child(19) { left: 95px; animation-delay: 3.846s; }
.rain-effects-container .drop:nth-child(20) { left: 100px; animation-delay: 4.145s; }
.rain-effects-container .drop:nth-child(21) { left: 105px; animation-delay: 2.823s; }

@keyframes rain-drop {
  0% { transform: translate(0%, 0%) rotate(5deg); opacity: 0; }
  40% { opacity: 1; } 90% { opacity: 0.8; }
  100% { transform: translate(-600%, 600%) rotate(5deg); opacity: 0;}
}

/* NO MATTER */

.car {
  width: 100px;
  position: absolute;
}

.cell {
  margin: 30px;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  height: 100px;
  width: 100px;
  position: relative;
}

body {
  background-color: #101010;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

.car-wetness {
  width: 100px;
  height: 50px;
  mix-blend-mode: hard-light;
  position: absolute;
  z-index: 2;
  mask-size: 100px;
  clip-path: inset(0 0 5px 0);
}

.car-wetness.zaz {
  mask-image: url('https://i.imgur.com/TctYSX3.png');
}

.car-wetness.cooper {
  mask-image: url('https://i.imgur.com/Go8E6J1.png');
}

.car-wetness::after {
  width: 100px;
  height: 50px;
  content: '';
  position: absolute;
  background: linear-gradient(to bottom, transparent 0%, rgba(60,83,105,0.9) 50%, transparent 100%);
  animation: car-wetness-flow 8s ease-out infinite;
}

@keyframes car-wetness-flow {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(100%); }
}

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.