mirror of
https://github.com/Aroy-Art/Rinkusu.git
synced 2024-12-27 07:44:23 +01:00
Added image preloader function
This commit is contained in:
parent
d923e91338
commit
54c3320fa9
1 changed files with 8 additions and 0 deletions
|
@ -6,6 +6,14 @@ $(window).on('load', function () {
|
|||
$('.preloader').fadeOut(100);
|
||||
});
|
||||
|
||||
/* ========================================================================= */
|
||||
/* Image Preloader
|
||||
/* ========================================================================= */
|
||||
function imgIsLoaded(imgElement) {
|
||||
$(imgElement).addClass("loaded");
|
||||
$(imgElement).removeClass("unloaded");
|
||||
}
|
||||
|
||||
jQuery(function ($) {
|
||||
"use strict";
|
||||
|
||||
|
|
Loading…
Reference in a new issue