N
N
Norum2021-06-22 11:59:08
css
Norum, 2021-06-22 11:59:08

Why is there a pop-up window on page load?

When loading a page, a pop-up window appears and disappears for a few seconds? In connection with what does it appear?

ilyin1ib.beget.tech

All code https://jsfiddle.net/8rwh5nvk/1/

60d1a65a94754179586322.jpeg

Answer the question

In order to leave comments, you need to log in

1 answer(s)
W
WapSter, 2021-06-22
@Norum

.popup {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

Initially the window is visible, after the js is loaded, the closing is triggered
$('.popup').fadeOut();

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question