I need to loop through an array of text and apply jQuery's fadeIn and fadeOut functions to each element.
var greetings = ["hi, I'm", "bonjour, je m'appelle", "hallo, ich heiße"]
The HTML structure I want is as follows:
<h2><span id="greetings"></span>Ch1maera</h2>
On the homepage of my website, I want it to display something like "hi, I'm Ch1maera" and then transition between the different greetings by fading them in and out, all while keeping "Ch1maera" on the screen without moving based on the length of the greetings. How can I achieve this?