Advertisement
Guest User

Untitled

a guest
Sep 25th, 2017
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $('#load').delay(2000).fadeOut(1200, function() {
  2.  
  3.         $('.box').animate({
  4.             width: 'toggle'
  5.             }, 2000, function() {
  6.            
  7.                 $('.fade-home').animate({
  8.                     opacity: '0.5'
  9.                     }, 500, function() {
  10.                    
  11.                         $('.fade-home').fadeIn(300).css('background-color', 'black', 'display', 'block');
  12.                    
  13.                     });
  14.                
  15.             });
  16.         $(this).toggleClass('active-tab');
  17.         $('.final-tab').animate({'width': 'toggle'}, {duration: 1900} );
  18.        
  19.         $('.btn-slide').click(function(){
  20.            
  21.             $('.fade-home').animate({
  22.                 opacity: '0.5'
  23.                 }, 500, function() {
  24.                     $('.fade-home').fadeOut(200).css('background-color', 'none', 'display', 'none').removeClass('fade-active');
  25.                 });
  26.         });//end of fade effect, when you close the tab remove fade
  27.        
  28.     }); //end of load animation when you enter in the website
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement