我有 10 张图像,当我悬停其中一张时,我希望剩下的 9 张来更改过滤器。
这就是我所拥有的:
CSS
#posts-wrapper:hover .posts {
-webkit-filter: blur(10px);
}
jQuery
$(document).ready(function(){
$(".posts").mouseover(function() {
$(this).css("-webkit-filter", "none");
});
$(".posts").mouseleave(function() {
$(this).css("-webkit-filter", "blur(10px)");
});
});