Answer the question
In order to leave comments, you need to log in
How to make text appear and change?
Good afternoon.
There is a text:
<h3 id="text">We will <span id="green">8</span> your purchase.</h3>
<h3 id="text">We will <span id="green">5</span> your purchase.</h3>
<h3 id="text">We will <span id="green">2<</span> your purchase.</h3>
<h3 id="text">We will<span id="green">3</span>your purchase.</h3>
$(function(){
var message = ['#text'];
function show()
{ var text = message.shift();
message.push(text)
text(text).fadeIn(700, hide);
}
function hide()
{
delay(2000).fadeOut(700, show)
}
show()
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question