I’m currently trying to get a website to load and i’m having a spot of difficulty and i was hoping someone could help me out with it.
The effect that i’m going for is that i’d like to have a gif file looping through as the website loads in the background and then once loaded the gif file to fadeaway and then i’d like the whole website to fade in.
@Johnnyb thanks for the tip, that’s a much cleaner way of doing it than i did but unfortunately it causes parts of the script to stop working, the $(‘#loader’).fadeOut(2000 doesn’t run at all but the $(‘body’).fadeIn works as expected though.
Hey @Johnnyb sorry i’ve taken a while to respond, i’ve had a tone of other errors and issues that i’ve been trying to work through.
I’ve decided to put the loading part on ice for now as i’m currently having difficulty with some other scripting issues which i was hoping you could maybe point me in the right direction, i’m trying to add keyboard navigation to the whole site and i’ve been following this tutorial by Remy Sharp but i can’t seem to adapt it to my needs.
I’d like to add this code to the scrollTo plugin so when the user clicks the up or down keys the page will scroll to the next or previous section.