-
-
Save beaucollins/6628528 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// FADEOUT THE LOADING GRAPHIC AFTER WAITING 1 SEC | |
function fadeSpinner(complete){ | |
$('.delay-spinner').delay(1000).fadeToggle(500, 'easeOutQuart', complete); | |
} | |
// FADEIN THE CONTENT | |
function fadeInContent(type){ | |
$('.ps-item-content .'+type+'').fadeToggle(700, 'easeInQuart'); | |
} | |
var fadeSpinnerType = function(){ | |
fadeInContent(contentType); | |
}; | |
fadeSpinner(fadeSpinnerType); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment