Simple loader

Size
2,645 Kb
Views
12,144

How do I make an simple loader?

What is a simple loader? How do you make a simple loader? This script and codes were developed by Kasper Mikiewicz on 21 November 2022, Monday.

Simple loader Previews

Simple loader - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Simple loader</title> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/5.0.0/normalize.min.css"> <style> /* NOTE: The styles were added inline because Prefixfree needs access to your styles and they must be inlined if they are on local disk! */ .loading { position: relative;
}
.loading:after { content: ''; position: absolute; z-index: 100; left: 50%; top: 50%; margin: -.5em 0 0 -.5em; width: 1em; height: 1em; font-size: 1.5em; border-right: .1em solid #bbc0ca; border-bottom: .1em solid #f0f1f4; border-top: .1em solid #bbc0ca; border-radius: 3em; box-sizing: border-box; animation: spin 1s infinite linear; transition: 1s ease;
}
.loading.is-loaded:after { opacity: 0; visibility: hidden;
}
@keyframes spin { from {transform:rotate(0deg);} to {transform:rotate(360deg);}
}
/* Other style */
body { padding: 1%; text-align: center;
}
a { font-family: sans-serif; text-decoration: none; color: #666; display: inline-block; padding: .5em 1em; margin: 1em; background: #3498db; color: #fff; border-radius: 3px;
}
.box { display: inline-block; width: 200px; height: 80px; background: #eee;
} </style> <script src="https://cdnjs.cloudflare.com/ajax/libs/prefixfree/1.0.7/prefixfree.min.js"></script>
</head>
<body> <div class="box loading js-loader-1"></div>
<p> <a href="#loader-1" class="js-finish-loading">Trigger loading end</a>
</p> <script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script> <script src="js/index.js"></script>
</body>
</html>

Simple loader - Script Codes CSS Codes

.loading { position: relative;
}
.loading:after { content: ''; position: absolute; z-index: 100; left: 50%; top: 50%; margin: -.5em 0 0 -.5em; width: 1em; height: 1em; font-size: 1.5em; border-right: .1em solid #bbc0ca; border-bottom: .1em solid #f0f1f4; border-top: .1em solid #bbc0ca; border-radius: 3em; box-sizing: border-box; animation: spin 1s infinite linear; transition: 1s ease;
}
.loading.is-loaded:after { opacity: 0; visibility: hidden;
}
@keyframes spin { from {transform:rotate(0deg);} to {transform:rotate(360deg);}
}
/* Other style */
body { padding: 1%; text-align: center;
}
a { font-family: sans-serif; text-decoration: none; color: #666; display: inline-block; padding: .5em 1em; margin: 1em; background: #3498db; color: #fff; border-radius: 3px;
}
.box { display: inline-block; width: 200px; height: 80px; background: #eee;
}

Simple loader - Script Codes JS Codes

$('.js-finish-loading').on('click', function() { var id = $(this).attr('href').substr(1); $('.js-' + id).addClass('is-loaded');
});
Simple loader - Script Codes
Simple loader - Script Codes
Home Page Home
Developer Kasper Mikiewicz
Username Idered
Uploaded November 21, 2022
Rating 3.5
Size 2,645 Kb
Views 12,144
Do you need developer help for Simple loader?

Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!

Kasper Mikiewicz (Idered) Script Codes
Create amazing video scripts with AI!

Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!