After dedicating countless hours to this project, I have discovered that the issue arises when elements inside the current element are floated or absolutely positioned. This seems to disrupt the sliding effect.
If you are experiencing a similar problem, I wish you the best of luck in finding a solution.
Here is the original post:
It's quite simple really. I have multiple divs with various elements, and only one of these divs is visible at a time (the others remain hidden).
When the user clicks "Next", the current div should slide to the left and hide, while the next div slides in from the right (the actual logic is not the issue).
Using .slideUp() and .slideDown() achieved the desired result beautifully. However, when attempting to use:
$(oldBox).hide("slide", { direction: "right" }, 1000);
it does not work as expected. JQuery UI is already linked, so that is not the problem.
Any assistance would be greatly appreciated.
EDIT: Link to JSFiddle: http://jsfiddle.net/NFyRW/
EDIT2: It works on JSFiddle; however, I am unable to replicate the success on my actual website. The JavaScript is stored in a separate file and loaded in the header of each page (same header for every page).