N
N
nail4ik2015-10-23 19:51:47
JavaScript
nail4ik, 2015-10-23 19:51:47

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

3 answer(s)
D
Dmitry Skogorev, 2015-10-23
@EnterSandman

learn Russian first
https://jsfiddle.net/S1ashka/ovzjpr85/

S
Sergey Goryachev, 2015-10-23
@webirus

$(window).load(function() {
    $('.block1').delay(3000).hide(0); // или fadeOut(0)
    $('.block2').show(0); // или fadeIn(0)
});

M
Maxim Sofronov, 2015-10-23
@maxsof

Examples above or animation css.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question