zoukankan      html  css  js  c++  java
  • js跑马灯效果

     function nextPage() {
      
            /*
             克隆第一张图片并添加到box后
             box前移一张图片的距离动画
             动画回调里把box的left值设为0 删除第一张图片
             */
            $(".mypng li:first-child").clone().appendTo($(".mypng"));
            $(".mypng").animate({ left: -width }, { duration: 500, easing: "easeInQuad", complete: function () {
                $(this).css("left", "0");
                $(".mypng li:first-child").remove();
            }
            });
            }

     function prePage() {
                $(".mypng li:last-child").clone().prependTo($(".mypng"));
                $(".mypng").css("left", -width);
                $(".mypng").animate({ left: 0 }, { duration: 500, easing: "easeInQuad", complete: function () {
                   
                    $(".mypng li:last-child").remove();
                }
                });
        }

  • 相关阅读:
    ClickHouse 详解
    SparkStreaming(二)--SparkStreaming整合Kafka
    SparkStreaming(一)--核心概念及算子
    毕设进度-3月22日
    毕设进度-3月21日
    毕设进度-3月14日
    毕设进度-3月13日
    毕设进度-3月12日
    毕设进度-3月11日
    毕设进度-3月10日
  • 原文地址:https://www.cnblogs.com/pandabunny/p/3803426.html
Copyright © 2011-2022 走看看