Line 65: | Line 65: | ||
n = n+1; | n = n+1; | ||
if (n==3) { | if (n==3) { | ||
+ | $("#two").css('left', '110%') | ||
$('#two').animate({'left':'10%'}, 500); | $('#two').animate({'left':'10%'}, 500); | ||
− | $("#one").animate({'left':'110%'}, 500 | + | $("#one").animate({'left':'-110%'}, 500);} |
− | + | ||
else if (n==4) { | else if (n==4) { | ||
+ | $("#three").css('left', '110%'); | ||
$('#three').animate({'left':'10%'}, 500); | $('#three').animate({'left':'10%'}, 500); | ||
− | $("#two").animate({'left':'110%'}, 500 | + | $("#two").animate({'left':'-110%'}, 500);} |
− | + | ||
else if (n==5) { | else if (n==5) { | ||
+ | $("#four").css('left', '110%'); | ||
$('#four').animate({'left':'10%'}, 500); | $('#four').animate({'left':'10%'}, 500); | ||
− | $("#three").animate({'left':'110%'}, 500 | + | $("#three").animate({'left':'-110%'}, 500);} |
− | + | ||
else if (n == 6) { | else if (n == 6) { | ||
− | $("# | + | $("#one").css('left', '110%'); |
− | $("# | + | $("#four").animate({'left':'-110%'}, 500); |
− | $("# | + | $("#one").animate({'left':'10%'}, 500); |
n = 2;} | n = 2;} | ||
}); | }); | ||
Line 86: | Line 86: | ||
n = n-1; | n = n-1; | ||
if (n == 1) { | if (n == 1) { | ||
+ | $("#four").css('left', '110%'); | ||
$("#four").animate({'left':'10%'}, 500); | $("#four").animate({'left':'10%'}, 500); | ||
− | $("#one").animate({'left':'110%'}, 500 | + | $("#one").animate({'left':'-110%'}, 500); |
− | + | ||
n = 5;} | n = 5;} | ||
else if (n==2) { | else if (n==2) { | ||
Line 95: | Line 95: | ||
else if (n==3) { | else if (n==3) { | ||
$('#two').animate({'left':'10%'}, 500); | $('#two').animate({'left':'10%'}, 500); | ||
− | $("#three").animate({'left':'110%'}, 500); | + | $("#three").animate({'left':'-110%'}, 500); |
$("#four").css('left', '-110%');} | $("#four").css('left', '-110%');} | ||
else if (n==4) { | else if (n==4) { | ||
$('#three').animate({'left':'10%'}, 500); | $('#three').animate({'left':'10%'}, 500); | ||
$("#four").animate({'left':'110%'}, 500); | $("#four").animate({'left':'110%'}, 500); | ||
− | $("# | + | $("#one").css('left', '-110%'); |
− | $("# | + | $("#two").css('left', '110%');} |
else if (n==5) { | else if (n==5) { | ||
$('#four').animate({'left':'10%'}, 500); | $('#four').animate({'left':'10%'}, 500); | ||
$("#three").animate({'left':'110%'}, 500); | $("#three").animate({'left':'110%'}, 500); | ||
− | $("#one | + | $("#one").css('left', '-110%');} |
− | + | ||
}); | }); | ||
Revision as of 19:05, 15 August 2016
>
<