Emulate effect with intro logo

0

I have this url link in which upon entering an effect appears with the logo that covers the entire screen with a solid color and then positioned at the left side of the page. How could I emulate this effect.

I have this code link which has a similar movement but depends on a pointer action, how could the code change to that the movement starts when the page loads.

Thanks in advance for your time and help.

    
asked by Jorge Alarcon 03.09.2018 в 00:12
source

1 answer

1

Change your Javascript code with this one:

var navEl = $(".nav");
var fullscreen = $(".fullscreen");

setTimeout(() => {
fullscreen.addClass("shrunk");
navEl.addClass("expanded");
}, 1000);

You can change the 1000 representing 1000 milliseconds = 1 second, for as long as you need the logo to be displayed. Remember to mark the answer as valid to help other people with your problem in the future. Luck!

    
answered by 03.09.2018 в 00:34