I am experimenting with creating a unique effect on my website. I have incorporated a textarea
with transparent text overlaying a pre
element that displays the typed text dynamically using JavaScript. This creates an illusion of the user typing in real-time, similar to the background color feature showcased on the Regex Tester tool located at this link. However, while I aim to modify the text and background colors for this effect, I encounter an issue with the transparency affecting the blinking cursor within the textarea, resulting in a visually disorienting experience.
Is there a solution that would allow me to change the color of the blinking cursor separately from the text itself? Alternatively, is it possible to adjust only the text color without impacting the appearance of the blinking cursor?
Despite searching for answers across various platforms, I have yet to find a satisfactory solution to this predicament.
It is important to note that in this context, I am specifically referring to the blinking caret or cursor within the textarea box upon clicking, rather than the movement of the mouse cursor on the screen.