aboutsummaryrefslogtreecommitdiffhomepage
path: root/assets/js/preLoader.js
blob: d566458dcf078288f03a5d531eb89b33125d6c24 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
$("body").css("backgroundImage", "url('https://source.unsplash.com/collection/3349303/" + window.outerWidth + "x" + window.outerHeight + "')");
$(window).on("load", () => {
    $("#udDots")
        .fadeOut(300, () => {
            $(".typewriter h1").fadeIn();
            $("#udBgLeft").animate({left: "-50%"}, 300);
            $("#udBgRight").animate({right: "-50%"}, 300, () => {
                $("#udPreLoader").fadeOut(10);
            });
        });
});