Jquery同位素过滤淡化了无与伦比的物品,而不是隐藏
Jquery同位素过滤淡化了无与伦比的物品,而不是隐藏。 在过滤不匹配的项目的情况下获得display none的属性。 我想显示匹配项应该自动向上滚动,其他应该向下滚动这样的内容http://base22.com/wps/portal/home/about-us/our-team
var $container = $('.portfolioContainer'); $container.isotope({ filter: '*', hiddenStyle: {opacity: 0.7}, visibleStyle: {opacity: 1}, animationOptions: { duration: 750, easing: 'linear', queue: false } }); $('.innermenu .list-inline li a').click(function() { $('.innermenu .list-inline li .current').removeClass('current'); $(this).addClass('current'); var selector = $(this).attr('post-category'); $container.isotope({ filter: selector, hiddenStyle: {opacity: 0.7}, visibleStyle: {opacity: 1}, itemPositionDataEnabled: true, animationOptions: { duration: 750, easing: 'linear', queue: false } }); return false; });
.isotope-item { z-index: 2; } .isotope-hidden.isotope-item { pointer-events: none; z-index: 1; } .isotope, .isotope .isotope-item { /* change duration value to whatever you like */ -webkit-transition-duration: 0.8s; -moz-transition-duration: 0.8s; -ms-transition-duration: 0.8s; -o-transition-duration: 0.8s; transition-duration: 0.8s; } .isotope { -webkit-transition-property: height, width; -moz-transition-property: height, width; -ms-transition-property: height, width; -o-transition-property: height, width; transition-property: height, width; } .isotope .isotope-item { -webkit-transition-property: -webkit-transform, opacity; -moz-transition-property: -moz-transform, opacity; -ms-transition-property: -ms-transform, opacity; -o-transition-property: -o-transform, opacity; transition-property: transform, opacity; } /**** disabling Isotope CSS3 transitions ****/ .isotope.no-transition, .isotope.no-transition .isotope-item, .isotope .isotope-item.no-transition { -webkit-transition-duration: 0s; -moz-transition-duration: 0s; -ms-transition-duration: 0s; -o-transition-duration: 0s; transition-duration: 0s; } .isotope:after { content: ''; display: block; clear: both; }
<div class="col-md-4 col-sm-4 col-xs-12 portfolio thumbnail-margin slug . $separator; } echo trim($output, $separator); } ?>"> <a href="https://stackoverflow.com/questions/25916873/jquery-isotope-filtering-fade-unmatched-items-instead-of-hiding/">