Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Fade in content after Typekit loads.
- odc.fadeContent = function(){
- //Content you want to animate in, hide on load.
- $("div.inner").hide();
- var htmlInterval = window.setInterval(function() {
- var htmlClass = $('html').attr('class');
- if(htmlClass.indexOf('wf-active') >= 0) {
- //Content you want faded in.
- $("div.inner").fadeIn(1500, function(){
- //Clear interval after animation completes.
- window.clearInterval(htmlInterval);
- });
- }
- }, 500);
- }
Add Comment
Please, Sign In to add comment