使用animate.css实现翻转特显

.houverlxx是父元素
其他两个元素是子元素,使用定位
$(function(){
            $(".houverlxx").hover(function(){
                // floor-goods-item消失 floor-goods-item2 显示
                $(this).children('.floor-goods-item').addClass('animated fadeOut');
                var _this = $(this);
                setTimeout(function function_name(argument) {
                    _this.children('.floor-goods-item').hide();
                    _this.children('.floor-goods-item').next().show().addClass('animated flipInY');
                },200); 
            },function(){
                $(this).children('.floor-goods-item2').hide();
                var _this = $(this);
                    _this.children('.floor-goods-item').show();
                    _this.children('.floor-goods-item').addClass('animated flipInY');
            });
        })

猜你喜欢

转载自blog.csdn.net/hd2killers/article/details/80563297