Jquery Animate Background Image Transition

11,614

Solution 1

Or you can use css-sprite

http://snook.ca/archives/javascript/jquery-bg-image-animations/

demo: http://snook.ca/technical/jquery-bg/

Solution 2

jQuery Plugin for background Position

Share:
11,614
John F
Author by

John F

I'm a Cloud Architect and Microsoft Azure MVP, focused on providing architecture and technical solutions for cloud based SaaS projects using Azure. I'm particularly focused on areas around cloud automation and deployment, devops, configuration management, along with high performance and grid computing in the cloud. I blog about Azure and cloud related topics at samcogan.com

Updated on June 04, 2022

Comments

  • John F
    John F almost 2 years

    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?