What I am wanting is when the loader's display goes to none then the script should work, but the if condition is not working with display == none.
$(window).on('load', function () {
$('.load').fadeOut('slow');
});
$(window).ready(function () {
if ($('.load').css('display') == 'none') {
$('.welcome').css({
transform: 'translateY(0px)',
opacity: '1',
});
$('.wel').css({
transform: 'translateY(0px)',
opacity: '1',
});
}
})