troubleshooting Question

JQuery DIV Tab Content Switcher On Hover With Fade Out / In Transition Effect

Avatar of thyros
thyros asked on
5 Comments1 Solution7470 ViewsLast Modified:
Notice that many site front pages contain a main focus point, an area of content that switches through 4-5 different images or html content, like a preview teaser?  Here is an example:

A Featured Products 'Showcase' with several tabs

    * Laptops
    * Cameras
    * TVs
    * Fragrance
    * Blu-ray Players

When you mouseover / hover over the tab link, the current content fades out, before fading in the new content.  I would like to recreate this functionality, using jquery library or a simple javascript function if possible.

There are other variations of this content slideshow online, but most of these are dependent upon fixed width DIVs and slide in and out of view, thus making them unsuitable for fluid layouts.  However, this method with fade transitions rather than slide in is more preferable as it allows fluid layouts and variable width DIVs to fit in nicely without major problems.

I would appreciate if someone could put together the javascript / jquery necessary to achieve that effect, perhaps using about 5 tabs or links (related to 5 DIVs) as in the example above.  It would also be a nice touch to show a random tab content on page load rather than showing the first tab content by default.

Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 5 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 5 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros