Personalized checkout and custom promotions with Shopify Scripts
Hi, Im trying to add a fadeout as opposed to an abrupt ending to my preload screen. Can't get anything to work. Can anyone help?
<div id="preloader">
</div>
<script type="text/javascript">
(
function()
{
var preload = document.getElementById("preloader");
var isMobile = /iPhone|iPad|iPod|Android/i.test(navigator.userAgent);
var loading = 0;
var id = setInterval(frame, 30);
function frame()
{
if(loading == 70)
{
clearInterval(id);
}
else
{
loading = loading + 1;
if(! isMobile)
{
if(loading == 60)
{
preload.style.opacity = "0";
preload.style.display = "none";
}
Dropshipping, a high-growth, $226 billion-dollar industry, remains a highly dynamic bus...
By JasonH Nov 27, 2024Hey Community! It’s time to share some appreciation and celebrate what we have accomplis...
By JasonH Nov 14, 2024In today’s interview, we sat down with @BSS-Commerce to discuss practical strategies f...
By JasonH Nov 13, 2024