So I’ve improvised a ‘loading’ screen on my homepage by having an element fade after a certain amount of time to reveal my page.
My menu is set to ‘hidden on load’ and then I’ve used the code line
setTimeout( function (){ $w(‘#horizontalMenu1’).show(‘fade’) }, 5500);
to reveal the menu after the loading element fades.
However, I now need a shopping cart icon, I’ve used the exact same code (obviously replacing the element name), used ‘hidden on load’ and the icon is in the header.
However it isn’t hidden on load, it just appears as soon as you go onto the page.
I’ve attached some images to try and better illustrate:
Thanks in advance for any help!