Preloader
How do I make an preloader?
CSS3 animation, jQuery Easingyou can change Percent Numbers from JS >>l = 8, j = 0;. What is a preloader? How do you make a preloader? This script and codes were developed by Nick Mkrtchyan on 10 November 2022, Thursday.
Preloader - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Preloader</title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <div class="preloader"> <h1>Preloader</h1> <div class="circle"></div> <div class="percent">0%</div>
</div>
<div class="end">Loading is End )</div>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
<script src="http://pcvector.net/uploads/demo/scripts/loader/custom_preloader/js/jquery.easing.js" type="text/javascript"></script> <script src="js/index.js"></script>
</body>
</html>
Preloader - Script Codes CSS Codes
@font-face { font-family: 'Electrolize'; font-style: normal; font-weight: 400; src: local('Electrolize'), local('Electrolize-Regular'), url(http://themes.googleusercontent.com/static/fonts/electrolize/v2/DDy9sgU2U7S4xAwH5thnJ4bN6UDyHWBl620a-IRfuBk.woff) format('woff');
}
@font-face { font-family: 'Abel'; font-style: normal; font-weight: 400; src: local('Abel'), local('Abel-Regular'), url(http://themes.googleusercontent.com/static/fonts/abel/v3/EAqh528fFdbUek8UOky4sA.woff) format('woff');
}
@-webkit-keyframes pulse { from { -webkit-box-shadow: 0 0 50px #fff;} 50% { -webkit-box-shadow: 0 0 100px #fff; } to { -webkit-box-shadow: 0 0 50px #fff;}
}
/* ------ general
-----------------------------------------------*/
html, body {
font-family: 'Electrolize';
padding:0;
margin:0;
}
body {
font-family: 'Electrolize';
background: #187a95;
color:#fff;
}
h1 {
font-family: 'Electrolize';
font-size:66px;
text-align:center;
font-weight:normal;
width:1000px;
position:absolute;
top:50%;
left:50%;
margin:-200px 0 0 -500px;
text-shadow:3px 0 0 #aaa;
}
.end {
position:absolute;
top:50%;
left:50%;
width:600px;
margin:-20px 0 0 -300px;
text-align:center;
font-family: 'Electrolize';
font-size:30px;
display:none;
}
.preloader {
position:absolute;
top:50%;
left:50%;
z-index:2;
width:30px;
height:30px;
margin:-15px 0 0 -15px;
background:rgba(0, 0, 0, .2);
-moz-border-radius:30px;
-webkit-border-radius:30px;
border-radius:30px;
-webkit-animation-name:pulse;
-webkit-animation-duration:2s;
-webkit-animation-iteration-count:infinite;
}
.preloader .percent {
display:block;
position:absolute;
left:50%;
bottom:-50px;
width:100px;
margin-left:-50px;
text-align:center;
font-family: 'Abel';
font-size:22px;
color:#fff;
}
.preloader .circle {
position:absolute;
top:50%;
left:50%;
width:20px;
height:20px;
margin:-10px 0 0 -10px;
background:#fff;
opacity:0;
-moz-border-radius:20px;
-webkit-border-radius:20px;
border-radius:20px;
}
.preloader span {
background:#fff;
position:absolute;
width:10px;
height:10px;
}
a {
color:#eee;
}
Preloader - Script Codes JS Codes
$(function(){ var preloader = $('.preloader'), end = $('.end'), pw = preloader.width(), percent = preloader.find('.percent'), circle = preloader.find('.circle'), l = 8, j = 0; var timer = setInterval(function(){ var p = parseInt((100/l)*j), w = (150*p)/100; for (i=0;i<15;i++){ preloader.append($('<span />')); } var span = preloader.find('span'); span.each(function(){ var t = $(this), x = random(-250, 250), y = random(-250, 250), d = random(10, 20), css = { top: y, left: x, width: d, height: d, '-moz-border-radius': d, '-webkit-border-radius': d, 'border-radius': d, opacity: .7 }, animation = { top: pw/2-d/2, left: pw/2-d/2, opacity: 0 } t.css(css).stop(true, true).animate(animation, 900, 'easeInBack', function(){ t.remove(); var css = { opacity: p/100 } circle.css(css); }); }); percent.text(p+'%') if (p > 99){ clearInterval(timer); setTimeout(function(){ preloader.fadeOut(400); end.fadeIn(); }, 1500); } j++; }, 1000); function random(min, max){ return Math.floor((Math.random()*(max-min+1))+min); }
});
Developer | Nick Mkrtchyan |
Username | Sonick |
Uploaded | November 10, 2022 |
Rating | 3.5 |
Size | 2,981 Kb |
Views | 22,264 |
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!
Name | Size |
Canvas Background Effect | 3,513 Kb |
Canvas Hover Effect | 2,833 Kb |
3D Menu | 3,448 Kb |
Canvas Background Effect 3 | 3,029 Kb |
CSS2 Spotlight | 2,531 Kb |
404 Monster Error | 3,291 Kb |
Canvas Green Particles | 3,249 Kb |
Pure Css3 Menu | 3,056 Kb |
Canvas Starfield | 2,827 Kb |
CSS3 Room | 2,718 Kb |
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!
Name | Username | Size |
Main page display | BarryKe | 4,562 Kb |
A bit of elegance | Hackthevoid | 9,095 Kb |
Improved Page Flipping Effect | Usaphp | 5,201 Kb |
Image grid with captions | Mchernin34 | 2,222 Kb |
A Pen by Ash | Littleginger | 2,386 Kb |
Social buttons | Flacu | 2,022 Kb |
Tic Tac Toe | Volv | 4,862 Kb |
A Pen by Markku Lehmonen | SharpDal | 7,804 Kb |
The Monty Hall Problem | Melatonind | 4,360 Kb |
We Simplify animation | Meodai | 48,169 Kb |
Surf anonymously, prevent hackers from acquiring your IP address, send anonymous email, and encrypt your Internet connection. High speed, ultra secure, and easy to use. Instant setup. Hide Your IP Now!