I started to learn jQuery lately. I'm trying to write a script that will fadeIn and fadeOut content for my website since I couldn't find it anywhere online.
There is my script: http://jsfiddle.net/hf9xJ/3/
My problem is that the script works properly only after clicking each link for atleast once (in one session). After that fadeOut() and fadeIn() work perfectly as they should.
When I'm trying to delete:
animate({
"left": "0%"
}, 500, 'linear',
whole script suddenly stops working.
Does anyone know how to fix this issue or even has better idea to write whole script in a better way?
Thanks!