Answers for "splash screen simple html script css"

1

how to show a splash screen html page only once

.home-page {
    display: none;
}

$(document).ready(function(){

    if (sessionStorage.getItem('splash') !== 'true') {
        $('.splash_section').show();
        sessionStorage.setItem('splash','true');
    }
    else {
        $('.home-page').fadeIn();
    }    
});
Posted by: Guest on July-18-2020

Browse Popular Code Answers by Language