So, I'm totally new to this and trying to produce an effect where an old address blinks a few times, then some new text replaces it. However, the minute I use .replaceWith(), it overrides all the other .fade and the .append calls.
<div id="footer-address">
<strong>Address</strong> Old Address</div>
<script>
$( document ).ready(function() {
$( "#footer-address" ).fadeOut(400).fadeIn(400).fadeOut(400).fadeIn(400).fadeOut(400).fadeIn(400).fadeOut(400).fadeIn(400).fadeOut(400).fadeIn(400).fadeOut(400).fadeIn(400).fadeOut(400).replaceWith("We have moved! Our new address is").fadeOut(400).append("<strong>Address</strong> New Address");
});
</script>
I appreciate you whacking me up side the head and offering the correct way to do something like this.
Thanks.