zoukankan      html  css  js  c++  java
  • 利用jQuery制作类似skype的按钮效果

    演示:
    http://www.cssrain.cn/demo/skypebuttons/SkypeButton.html
    http://www.cssrain.cn/demo/skypebuttons/SkypeButton2.html


    关键代码:
       $(document).ready(function(){
                $(".button").hover(function(){
          if(!$(".button img").is(":animated")){
                  $(".button img")
            .animate({top:"-10px"}, 200).animate({top:"-4px"}, 200)
            .animate({top:"-7px"}, 100).animate({top:"-4px"}, 100)
            .animate({top:"-6px"}, 100).animate({top:"-4px"}, 100);
           }
                });
          });


    本篇文章来源于 cssrain.cn 原文链接:http://www.cssrain.cn/article.asp?id=1337

  • 相关阅读:
    react 采坑记录
    理解JS 模块化
    MongoDB使用教程
    scss
    gulp 使用教程
    node.js 简单入门
    jQuery
    jQuery
    php+mysql+bootstrap 实现成绩管理系统
    SVN的commit功能用bat实现
  • 原文地址:https://www.cnblogs.com/luluping/p/1446604.html
Copyright © 2011-2022 走看看