I have been attempting to input a value into a text field using JavaScript, similar to the Gmail email input tag. However, I encountered an issue with some fancy animations that are tied to certain events which I am unsure how to trigger, illustrated in the images below:
Text field without focus/select: https://i.stack.imgur.com/8astq.png Text field after entry: https://i.stack.imgur.com/EC0B6.png Text field with focus/select: https://i.stack.imgur.com/Bzsym.png
After assigning a value, the value and the animated placeholder end up overlapping each other.
Various methods such as focus/select/clicking both individually and together have been unsuccessful. Therefore, I am considering whether triggering the animation like a real user click followed by assigning the value might be effective.
How can I accomplish this? Alternatively, is there another method for letting the animation or their input verification code capture my assigned value so that the placeholder does not interfere with my entered value?