Guest User

Untitled

a guest
Jan 21st, 2018
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. //Fade in content after Typekit loads.
  2. odc.fadeContent = function(){
  3. //Content you want to animate in, hide on load.
  4. $("div.inner").hide();
  5.  
  6. var htmlInterval = window.setInterval(function() {
  7. var htmlClass = $('html').attr('class');
  8. if(htmlClass.indexOf('wf-active') >= 0) {
  9. //Content you want faded in.
  10. $("div.inner").fadeIn(1500, function(){
  11. //Clear interval after animation completes.
  12. window.clearInterval(htmlInterval);
  13. });
  14. }
  15. }, 500);
  16. }
Add Comment
Please, Sign In to add comment