我有我正在开发的这个网站 - 我制作了滚动条使用以下代码:

$(document).ready(function()
{
      function scrollIt()
      {
         $('#featured-brands div#scroll').animate({
            marginLeft: "-4550px"}, 85000, "linear").animate({ 
               marginTop: "-223px" }, 200, "linear").animate({ 
                  marginLeft: "750px" }, 100, "linear").animate({ 
                 marginTop: "57px" }, 1, "linear", scrollIt);
      }
      scrollIt();
});

当最终图像滑过时,有一个可见的白色空白区域,如何让第一张图像出现在最终图像之后,所以没有空格?

干杯, 基思

有帮助吗?

解决方案

将其分成两部分。当一个人从底部离开时,移动它使它高于另一个。

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top