zoukankan      html  css  js  c++  java
  • JS animate动画

    <!DOCTYPE html>
    <html lang="zh-cn">
    <head>
    <meta charset="utf-8">
    <title></title>
    <style>
    #senda,#sendb{
    position: relative;
    }

    </style>
    </head>
    <body>
    <div id="senda">aaa</div>
    <div id="sendb">bbbb</div>
    </body>
    <script src="js/jquery-1.11.3.js"></script>
    <script>
    $(function(){
    var n=1;
    var speed = 2000;
    $('#senda').click(function(){
    $(this).animate({left:"+=300px"}, speed, function(){
    // $(this).clearQueue().delay(100).queue(function() {
    speed += 1000;
    // });
    });
    });
    });
    </script>
    <script>
    </script>
    </html>
  • 相关阅读:
    android作业10.21
    安卓10.7作业
    安卓9.30
    9.23作业
    9.17安卓作业
    6.12作业
    5.29作业
    5.28上机作业
    leetcode 219
    策略模式
  • 原文地址:https://www.cnblogs.com/dianzan/p/7456120.html
Copyright © 2011-2022 走看看