I have an array of text that I'd like to iterate through and call the fadeIn and fadeOut functions in jQuery on.
var hellos = ["hi, i'm", "bonjour, je m'appelle", "hallo, ich heiße"]
The html code would look something like this:
<h2><span id="hellos"></span>Ch1maera</h2>
Ideally, on the front page of my website it would read something like "hi, i'm ch1maera" and then cycle through the different hellos, fading them in and then fading them out, while leaving "ch1maera" on the screen. If possible, I'd like to isolate the "ch1maera" from the hellos so that it stays in the same place and doesn't move depending on the length of the hellos in the list, if that makes sense. How would this be done?