This uses the jQuery animate function to slide in and out.
What are the general recommendations for animations?
Don't make the animation irritating/annoying?
What issues need to be considered and addressed when using animations?
There is a possibility that you may need to include a prefix to get the animations to work correctly and that the animation may not/probably won't work in older browsers.