Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6667595
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T02:57:01+00:00 2026-05-26T02:57:01+00:00

Having a hell of a time using http://plugins.jquery.com/project/bgImageTransition to create a slideshow of crossfaded

  • 0

Having a hell of a time using http://plugins.jquery.com/project/bgImageTransition to create a slideshow of crossfaded images using div background urls. The reason I’m using background images is that the entire slideshow needs rounded corners and inset shadows. The problem is that the plugin seems to fade in a new image then fade back out to the original. I want each image to be new, not A, B, A, D, A, X, A, E, etc.

I made a JSFiddle: http://jsfiddle.net/dJgge/2/ and also copied the relevant code below:

var currImage = '007.jpg';
setInterval( function(){
    do{
        var randImage = bgImages[Math.ceil(Math.random()*(bgImages.length-1))];
    }while( randImage == currImage )
    currImage = randImage;
    jQuery('#thumbshow').BgImageTransition( 'path/'+currImage );
}, 2000)

This basically creates #thumbshow2 on top of #thumbshow, then removes it. I figured I just need to randomize the background image of #thumbshow while #thumbshow2 is on top:

var randImage2 = bgImages[Math.ceil(Math.random()*(bgImages.length-1))];
jQuery('#thumbshow').css('background',"url(path/"+randImage2+")");

But wherever I put this, it creates a flashing image effect. And I also need to ensure the secretly replaced background image doesn’t match the one currently on top. Suggestions?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T02:57:01+00:00Added an answer on May 26, 2026 at 2:57 am

    I was able to get it working using the “Cycle” plugin which is rock solid for transitions. Check out the fiddle here and see if this gets you closer to where you need to be. It’s still using background images, but doing so on separate div’s which are dynamically added to the parent slide show element.

    http://jsfiddle.net/H7Q33/1/

    Cycle plugin is here….

    http://jquery.malsup.com/cycle/

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Here is my site: http://www.dreamweddinggroup.com/redesign and I'm having a hell of a tough time
I'm having a hell of a time using CGImageCreateWithImageInRect to crop a photo. My
I'm having a hell of a time understanding pointers in Objective C. They don't
I'm having a hell of a time finding documentation which clearly explains how to
I'm having one hell of a time trying to get my databinding to work
I'm having a hell of a time getting WCF Data Services to work within
Well I'm having a hell of a time trying to get my CPU down
I'm having a hell of a time trying to get (what I thought was)
After switching to AS3, I've been having a hell of a time figuring out
I must be brain dead. I'm having a hell of a time right aligning

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.