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 7507309
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T22:27:48+00:00 2026-05-29T22:27:48+00:00

I have a jquery slideshow with hold frames and videos. When the hold frame

  • 0

I have a jquery slideshow with hold frames and videos. When the hold frame is clicked, I want it to fade out and the video to fade in and play.

It works with show() and hide(), but when I change it to fadeIn() and fadeOut() the whole thing breaks.

Any idea why this is happening?

          $('.holdFrame1').click(function(){  
            $(".holdFrame1").delay(500).hide();         
            $(".hiddenVideo1").show(
            function(){          
               $f(players[0]).api('play');                                                                                                                     
});

This is what I would like to accomplish

          $('.holdFrame1').click(function(){  
            $(".holdFrame1").delay(500).fadeOut('slow');         
            $(".hiddenVideo1").show(
             function(){          
               $f(players[0]).api('play');                                                                                                                     
       });
      });

But that causes the image not to fadeOut, but rather stay in place while the hidden video appears below it.

  • 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-29T22:27:49+00:00Added an answer on May 29, 2026 at 10:27 pm

    You need to use .fadeOut() (and .fadeIn()) correctly with callbacks. So the method signature you’re looking for is:

    .fadeOut( [duration] [, callback] )
    

    I have to predict what your markup looks like, but in general this isn’t too difficult. Using:

    .videoContainer {
        background: grey;
        height: 400px;
        width: 560px;
        padding: 10px;
    }
    .holdFrame,
    .hiddenVideo {
        width: 100%;
        height: 100%;
    }
    .holdFrame {
        background: green;
    }
    .hiddenVideo {
        background: yellow;
        display: none;
    }
    
    <div class="videoContainer">
        <div class="holdFrame">Click to play video.</div>
        <div class="hiddenVideo">Video will be here.</div>
    </div>
    

    You can:

    $(".holdFrame").click(function(){
        var $this = $(this);
    
        $this.fadeOut(500, function(){
            $this.siblings('.hiddenVideo').fadeIn(500, function (){
                $f(players[0]).api('play');
            });
        });
    });
    

    http://jsfiddle.net/yeRxP/

    The nice thing about this (in which I’m fairly certain I’ve modified your markup and CSS without knowing it), you can have more than one video player on the same page and they won’t conflict:

    http://jsfiddle.net/yeRxP/2/

    Since I’m not familiar with your video player, you’ll have to modify it to play the correct video on the .fadeIn() callback.

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

Sidebar

Related Questions

I have a slideshow built in flash that I want to mimic in jQuery.
I have two navigation arrows (transparent pngs) that fade in/out (using jQuery fadeIn() and
I have a jQuery slideshow code that works fine with the following HTML structure:
I'm trying to have my first image of a jQuery cycle slideshow fade in
I have a JQuery slideshow where some text/slide fades in and out. At the
I have blinking text modal dialog box and slideshow with jquery. They working just
I have encountered a very strange problem. The jquery slideshow in the below webpage
hi i'm using a script made by http://snook.ca/archives/javascript/simplest-jquery-slideshow so basically the code i have
I have some jQuery that creates a slideshow using BX slider for an unknown
I have a JQuery dropdown which is hiding behind a JQuery slideshow directly under

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.