I currently have a javascript function that blurs an image when hovered over. Each of these images represents a project, and I have 5 of these projects with the class "individual-project". An img inside an individual project div has the class "project-img".
$('.individual-project').eq(0).hover(function() {
$('.project-img').eq(0).css({'filter': 'blur(3px)', 'transform': 'scale(1.1, 1.1)', '-webkit-filter': 'blur(3px)', '-webkit-transform': 'scale(1.1, 1.1)', '-moz-filter': 'blur(3px)', '-moz-transform': 'scale(1.1, 1.1)'});
}, function() {
$('.project-img').eq(0).css({'filter': 'blur(0px) brightness(100%)'});
});
Currently I need to repeat this block 5 times and change the value inside the eq function for each project to blur it without blurring all of the other ones. Any help with the getting the selectors to work for individual divs with the same class would be great. Thanks.
.individual-projects have any children?