Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR HTML

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();
    }    
});
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #show #splash #screen #html #page
ADD COMMENT
Topic
Name
7+5 =