3
Good use the following code in jquery to add a div on the site:
$("body").append('<div class="shadow-full"></div>');
But it appears at once, wanted to put an effect to it appear more softly, has how to do this?
3
Good use the following code in jquery to add a div on the site:
$("body").append('<div class="shadow-full"></div>');
But it appears at once, wanted to put an effect to it appear more softly, has how to do this?
3
You gotta break it up into steps.
To do this "It’s there jQuery" could be so:
$('<div class="shadow-full">Teste!</div>')
.hide()
.appendTo("body")
.fadeIn(1000);
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
Browser other questions tagged javascript jquery
You are not signed in. Login or sign up in order to post.
vlw, thank you very much
– Hugo Borges