Answer the question
In order to leave comments, you need to log in
How to make it so that when the page loads after 3 seconds, 1 block is hidden and another one appears?
The second block is initially hidden.
Help me please.
Answer the question
In order to leave comments, you need to log in
learn Russian first
https://jsfiddle.net/S1ashka/ovzjpr85/
$(window).load(function() {
$('.block1').delay(3000).hide(0); // или fadeOut(0)
$('.block2').show(0); // или fadeIn(0)
});
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question