7 个回答
Talk is cheap,show me the code.

code

这个问题的我感觉你最好自己按F12去看一下人的代码怎么实现的,学会如何查看别人的代码也是一个很重要的技能

    $('.gsPartner li span').hover(function(){
        $(this).addClass('animated fadeIn')
    },function(){
        $('.gsPartner li span').removeClass('animated fadeIn')
    })

以上代码是我用F12在目标网站查看到的代码,人的逻辑就是鼠标划过时,添加animated fadeIn这两个class,鼠标离开时,再删除这两个class,动画效果是用的animate.min.css库里面的fadeIn效果

css3 fade渐进吧,还是觉得这种展示方式的设计很不好

animation fadeIn

css3中的渐变实现,或是用jquery中的toggle()实现就可以的

${functon(){
    $("*").hover(function(){
        function () {
    $(this).addClass("你css的class名称");
  },
  function () {
    $(this).removeClass("你css的class名称");
  }
});
}}
$('span').on("hover",function(){
    var _this = $(this);
   _this.hide(0,function(){
        _this.fadeIn();
    });
})    
撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题