Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $('#tabs a').click(function(){
- $(".anim-item[front!='true']:first").css("opacity", "1");
- $(".anim-item[front!='true']:first").css("top", "500px");
- $(".anim-item[front!='true']:first").css("left", "-500px");
- $(".anim-item[front!='true']:last").css("top", "500px");
- $(".anim-item[front!='true']:last").css("left", "-500px");
- $(".anim-item[front='true']").animate({height: 130, width: 180, left:'+=95', top:'+=70' }, speed, easing);
- $("img",".anim-item[front='true']").animate({height: 130, width: 180, left:0, top:0}, speed, easing);
- $('#bg-wrapper').css("background-image", $('#bg-wrapper2').css("background-image"));
- $('#bg-wrapper').css("opacity","0.6");
- $('#bg-wrapper2').css("opacity","0");
- $('#bg-wrapper2').css("background-image","url('" + $("img",".anim-item[front!='true']:first").attr("src") + "')");
- setTimeout(function(){
- $(".anim-item[front!='true']:first")
- .animate({left:200, top:150}, speed, easing)
- .animate({height: 280, width: 380, left:'-=95', top:'-=70' }, speed, easing)
- .attr("front", "temp");
- $("img",".anim-item[front!='true']:first").animate({opacity: 1}, speed).animate({height: 768, width: 1024, left:-310, top:-227}, speed, easing);
- $(".anim-item[front='true']").animate({left:500, top:500}, speed, easing);
- $("#bg-wrapper2").animate({width:"+=0"}, 2*speed).animate({opacity: 0.6}, speed, easing);
- $("#bg-wrapper").animate({width:"+=0"}, 2*speed).animate({opacity: 0}, speed, easing);
- $("#tabs").animate({opacity:"+=0"}, 3*speed).show("clip",{},500);
- $(".anim-item[front!='temp']:first").attr("front", "false");
- $(".anim-item[front='temp']:first").attr("front", "true");
- }, speed + 100);
- });
Advertisement
Add Comment
Please, Sign In to add comment