4
How to add fadein() effect, along with an append().
4
How to add fadein() effect, along with an append().
5
Test like this:
var count = 5;
$('#addCount').click(function () {
var p = $('<p>' + count + '</p>'); // criar o elemento
p.hide(); // escondê-lo
$('#new_elem').append(p); // "appendê-lo" ou "appendar" o <p>
p.fadeIn(); // fazer fade in com ele já na página
count++;
});
Browser other questions tagged javascript jquery html css
You are not signed in. Login or sign up in order to post.
Good! That’s right, thank you!
– Jefferson Alison
@Jeffersonalison, glad to help :)
– Sergio