= "mouseTrail";
    // Set the position of the element based on the mouse event
    i.style.left = event.pageX + "px";
    i.style.top = event.pageY + "px";
  
    // Randomly scale the element
    i.style.transform = `scale(${Math.random() * 2 + 1})`;
  
    // Set random transition values
    i.style.setProperty("--x", getRandomTransitionValue());
    i.style.setProperty("--y", getRandomTransitionValue());
    document.body.appendChild(i);
  
    // Remove the element after 2 seconds
    setTimeout(() => 