Template:Team:KIT-Kyoto/hp

From 2014.igem.org

(Difference between revisions)
Line 38: Line 38:
     }
     }
     $(".pic1 li:first").animate({
     $(".pic1 li:first").animate({
-
     marginRight : "-290px",opacity:"0"
+
     marginRight : "-270px",opacity:"0"
     }, {
     }, {
     duration : 800,
     duration : 800,
Line 61: Line 61:
     if(picbox >= picw){
     if(picbox >= picw){
     $(".pic2 li:nth-child(4)").css({opacity:"0"});
     $(".pic2 li:nth-child(4)").css({opacity:"0"});
-
     } if(picbox >= mpicw){
+
     }else if(picbox >= mpicw){
     $(".pic2 li:nth-child(3)").css({opacity:"0"});
     $(".pic2 li:nth-child(3)").css({opacity:"0"});
     }else {
     }else {
Line 67: Line 67:
     }
     }
     $(".pic2 li:first").animate({
     $(".pic2 li:first").animate({
-
     marginLeft : "-290px",opacity:"0"
+
     marginLeft : "-270px",opacity:"0"
     }, {
     }, {
     duration : 800,
     duration : 800,
Line 74: Line 74:
     $(".pic2 li:nth-child(4)").animate({opacity:"1"},1200);
     $(".pic2 li:nth-child(4)").animate({opacity:"1"},1200);
     }
     }
-
     else (picbox >= mpicw){
+
     else if(picbox >= mpicw){
     $(".pic2 li:nth-child(3)").animate({opacity:"1"},1200);
     $(".pic2 li:nth-child(3)").animate({opacity:"1"},1200);
     }else {
     }else {

Revision as of 19:31, 26 September 2014