It seems to me the following code should produce these results:
mademoiselle
demoiselle
mesdemoiselles
Instead, as "ma" fades out, "mes" fades in making the sequence:
mademoiselle
madesdemoiselles
mesdemoiselles
The code:
<span class="remove">ma</span><span class="add">mes</span>demoiselle<span class="add">s</span>
$(document).ready(function() {
$(".remove").fadeOut(4000,function(){
$(".add").fadeIn(5000);
});
});
Edit: I found an empty span that if I remove makes the bug go away:
<span class="remove">ma</span><span class="add">mes</span>demoiselle<span class="remove"></span><span class="add">s</span>
The problem is: The php code generating this is using the spans as placeholders. I'll str_replace them if I have to, but I'm curious why this is happening.