I found this solution great, but when I tested in Internet Explorer - unfortunately, it did not work. Reset Error: "The expected identifier, string, or dynamic property number of Internet explorer." So I made the less elegant decision of creating an animated call for each condition, making sure that the queue was set to false, because it should be executed simultaneously and applied to the same element that contained a different animation. For instance:
if (directionX == "right"){ $(this).animate({"right": amountX},{duration: 600, queue: false}); } else if (directionX == "left"){ $(this).animate({"left": amountX},{duration: 600, queue: false}); } if (directionY == "top"){ $(this).animate({"top": amountY},{duration: 600, queue: false}); } else if (directionY == "bottom"){ $(this).animate({"bottom": amountY},{duration: 600, queue: false}); } $(this).animate({ "backgroundSize": bigWidths_array[itemNum], "width": bigWidths_array[itemNum], "height": bigHeights_array[itemNum]}, 600, false, showBigText(itemNum));
source share