GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — javaScript/animate.css/1.html at master · gaoxuru02/javaScript Expand file tree/ Copy path1.htmlMore file actions 41 lines (41 loc) · 1.19 KB / Copy path1.htmlFile metadata and controls41 lines (41 loc) · 1.19 KB 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Title</title> <link rel="stylesheet" href="css/animate.min.css"> <style> *{ margin: 0; padding: 0; } #login{ width: 300px; height: 300px; border: 1px solid red; } .animated.tada{ -webkit-animation-duration:.3s; /*可以在这里改动画的持续时间,延迟时间和执行次数等*/ } </style> </head> <body> <div id="login"> <input type="text"> <button>登录</button> </div> </body> <script src="js/jquery-1.9.1.min.js"></script> <script> // git地址:https://github.com/daneden/animate.css $('button').on('click',function(){ var $login=$('#login'); var name= $.trim($('input').val()); if(name==''){ $login.addClass('animated tada').one('webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend',function(){ $(this).removeClass('animated tada'); }); //one('webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend',function(){}相当于回调 } }); </script> </html> |
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |