While working on my chatbot assignment, I set the background image opacity to 0.02.
Unexpectedly, as I input more messages, the opacity gradually increases all the way to 1.
Although this effect is pretty neat, it wasn't my original intention.
Something like this:
https://i.sstatic.net/urmOm.gif
How do I prevent this from happening?
Upon clicking the Send
button, the following code gets appended into <div id="chatbox">
:
<div class="userDiv"><p class="userText"><span>' + rawText + '</span></p></div>
I attempted to set the opacity of <div class="userDiv">
to 0.02 to match the background image opacity, but then my messages became invisible.
I have not been able to find a solution to this issue.
Thank you.
View the Jsfiddle example here: http://jsfiddle.net/qn7yhrds/9/