What I would like to do :
Moving 5px down image 2 when hovering image 1:

I don't know code (a little CSS) but I think this one could help to do what I want, of course it's not working, could you tell me why?
jQuery(document).ready(function($){
$('.image1').on('mouseenter', function() {
$(".image2").addClass("move5px");
});
});
$('.image1').on('mouseleave', function() {
$(".image2").removeClass("move5px");
});
The class I use:
.move5px{
top:-5px
}