Template:Team:KIT-Kyoto/hp
From 2014.igem.org
(Difference between revisions)
Line 10: | Line 10: | ||
$(".hp_img").eq(hpnum).stop().animate({"width":"60px","height":"60px","margin-left":"-2px","margin-top":"-10px"},100,'linear').css({"border-radius":"60px","-webkit-border-radius":"60px","-moz-border-radius":"60px"}); | $(".hp_img").eq(hpnum).stop().animate({"width":"60px","height":"60px","margin-left":"-2px","margin-top":"-10px"},100,'linear').css({"border-radius":"60px","-webkit-border-radius":"60px","-moz-border-radius":"60px"}); | ||
}); | }); | ||
- | $( | + | |
- | + | var loop = setInterval(function() { | |
- | + | var clone = $(".pic li:first").clone(true); | |
- | . | + | $(".pic li:first").animate({ |
- | + | marginTop : "-225px" | |
- | }, | + | }, { |
+ | duration : 500, | ||
+ | complete : function() { | ||
+ | $(".pic li:first").remove(); | ||
+ | clone.clone(true).insertAfter($(".pic li:last")); | ||
+ | } | ||
+ | }); | ||
+ | }, 1500); | ||
}); | }); | ||
</script> | </script> | ||
Line 90: | Line 97: | ||
margin-left:20px; | margin-left:20px; | ||
} | } | ||
- | |||
.pic { | .pic { | ||
- | + | float: left; | |
- | left | + | list-style: none; |
- | + | height: 280px; | |
- | + | overflow: hidden; | |
- | height: | + | position: relative; |
- | + | top: 10px; | |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | position: relative; | + | |
- | + | ||
- | + | ||
- | + | ||
- | top: | + | |
} | } | ||
</style> | </style> |
Revision as of 06:18, 26 September 2014