Having a strange experience with the WOW Jquery slider. I am new to Javascript and Jquery
I have a banner with some text that slides in on page load using the WOW slider. I also have a preloader before the wowslider text slides in.
When I refresh the page of my website locally the banner text slides in as required after the page loader. However, when I load the page locally first time from my desktop it does not slide in after the page loader? But will on page refresh.
The is the code I am using to initialise the page loader:
jQuery(document).ready(function() {
new WOW().init();
});
This is the text:
<h2 class="wow fadeInLeftBig">CARE TO JOIN US?</h2>
This is the page loading animation javascript: // Page loading animation
window.addEventListener("load", () => {
setTimeout(() => {
document.getElementById("preloader").classList.add("hide");
}, 000);
});
This is very strange as mentioned earlier it works on page refresh but not on initial page load. Any help with this would be most appreciated.