I have my code below which works well but i also want to move the image down 10px and back again on mouseout as well as putting the opacity back to 0.7.
$('#drinksList section a img').load(function() {
$(this).data('height', this.height);
}).bind('mouseenter mouseleave', function(e) {
$(this).stop().animate({
opacity: 1,
height: $(this).data('height') * (e.type === 'mouseenter' ? 1.05 : 1)
});
});
Any help would be appreciated.
Here you go:
Live demo: http://jsfiddle.net/simevidas/YwU9u/