Struggling with this code snippet:
$('#clicked_package').css({"background-image" : "url(img/head_2.png)"}).fadeOut("slow");
$('#clicked_package').css({"background-image" : "url(img/head_2_normal.png)"}).fadeIn("slow");
No matter which image I use in the first line, it always gets replaced by the second line. The initial image ends up being the same as the final one.
My goal is to smoothly fade out the original image and then fade in a new one.
Any suggestions on how to achieve this successfully? Thank you!