views:

4526

answers:

3

I have a navigation bar that when hovering over an item, the background image is changed, that works fine. However, I would like this image to slide in from the top, and slide back up when you stop hovering. I've been trying to do this with JQuery, using css bacgroundImage and sliding or toggling, but none of that seems to work. How can I do this using Jquery?

+1  A: 

jQuery Plugin for background Position

andres descalzo
A: 

@Snook css-sprite: the code is depreciated. It doens't seem to work with recent jquery libraries.