e.filter = `blur(0px)`;
              resolve();
            } else {
              currentOpacity += 0.05;
              element.style.opacity = currentOpacity;
              let blurAmount = (1 - currentOpacity) * 4; // 4px max blur when fully transparent
              element.style.filter = `blur(${blurAmount}px)`;
            }
          }, time_per_increment);
        });
      }

      /**
       * Fades an element out over a given window of time.
       * @param {Object} [element] - The DOM element i