How to keep ImageSwap smooth jquery
问题 i found this script to change images on hover. $(document).ready(function() { $('.rollover').hover(function() { swapImage(this); }, function() { swapImage(this); }); }); function swapImage(image) { var current = $(image).attr('src'); $(image).attr('src', $(image).attr('hover')); $(image).attr('hover', current); } But now i'm having the problem, that i want a smooth/soft transit and not that, what it does now. Here you can find a fiddle: JSfiddle Thanks and a nice sunday! 回答1: It is swapping