Guest User

Untitled

a guest
Jul 19th, 2010
408
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.70 KB | None | 0 0
  1. $('#tabs a').click(function(){
  2. $(".anim-item[front!='true']:first").css("opacity", "1");
  3. $(".anim-item[front!='true']:first").css("top", "500px");
  4. $(".anim-item[front!='true']:first").css("left", "-500px");
  5. $(".anim-item[front!='true']:last").css("top", "500px");
  6. $(".anim-item[front!='true']:last").css("left", "-500px");
  7.  
  8.  
  9. $(".anim-item[front='true']").animate({height: 130, width: 180, left:'+=95', top:'+=70' }, speed, easing);
  10. $("img",".anim-item[front='true']").animate({height: 130, width: 180, left:0, top:0}, speed, easing);
  11.  
  12. $('#bg-wrapper').css("background-image", $('#bg-wrapper2').css("background-image"));
  13. $('#bg-wrapper').css("opacity","0.6");
  14. $('#bg-wrapper2').css("opacity","0");
  15. $('#bg-wrapper2').css("background-image","url('" + $("img",".anim-item[front!='true']:first").attr("src") + "')");
  16.  
  17. setTimeout(function(){
  18. $(".anim-item[front!='true']:first")
  19. .animate({left:200, top:150}, speed, easing)
  20. .animate({height: 280, width: 380, left:'-=95', top:'-=70' }, speed, easing)
  21. .attr("front", "temp");
  22. $("img",".anim-item[front!='true']:first").animate({opacity: 1}, speed).animate({height: 768, width: 1024, left:-310, top:-227}, speed, easing);
  23. $(".anim-item[front='true']").animate({left:500, top:500}, speed, easing);
  24.  
  25.  
  26. $("#bg-wrapper2").animate({width:"+=0"}, 2*speed).animate({opacity: 0.6}, speed, easing);
  27. $("#bg-wrapper").animate({width:"+=0"}, 2*speed).animate({opacity: 0}, speed, easing);
  28. $("#tabs").animate({opacity:"+=0"}, 3*speed).show("clip",{},500);
  29.  
  30. $(".anim-item[front!='temp']:first").attr("front", "false");
  31. $(".anim-item[front='temp']:first").attr("front", "true");
  32.  
  33. }, speed + 100);
  34. });
Advertisement
Add Comment
Please, Sign In to add comment