jQuery+CSS3扑克洗牌和扑克牌翻转动画特效

jQuery+CSS3扑克洗牌和扑克牌翻转动画特效-精品资源网
jQuery+CSS3扑克洗牌和扑克牌翻转动画特效
此内容为免费资源,请登录后查看
0
免费资源

jQuery+CSS3扑克洗牌和扑克牌翻转动画特效

这是一款基于jQuery+CSS3实现的扑克洗牌和扑克牌翻转动画特效,jQuery卡片翻转效果代码。

js代码

<script type=\"text/javascript\" src=\"jquery.js\"></script>
<script type=\"text/javascript\">
  $(function(){
    $(\'.controls\').click(function(){
      if($(this).hasClass(\'show\')){
        $(this).removeClass(\'show\');
        subMove();
      }else{
        $(this).addClass(\'show\');
        addMove();
      }
    })
  })


  function addMove(){
    $(\'.project\').each(function(index,item){
      setTimeout(function(){
       $(item).addClass(\'ani\'+ index);
     },index*300);
    })
  }

  function subMove(){
    $(\'.project\').each(function(index,item){
       $(item).removeClass(\'ani\'+ index);
    })
  }
</script>

© 版权声明
THE END
点赞0 分享
评论 抢沙发
头像
欢迎您留下宝贵的见解!
提交
头像

昵称

取消
昵称表情代码图片

    暂无评论内容