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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T10:53:39+00:00 2026-06-17T10:53:39+00:00

does there have any code, if i set the .delay(500) show divA, then when

  • 0

does there have any code, if i set the .delay(500) show divA, then when divA show, divB will be auto hide when detect divA are appear. Because for my visual design, DivA and DivB will be the same place. i can’t use too much on the .delay for the page, because i scared of the timer problem, because not everyone has the good internet access.

Did there any way to do that? because i not that expert on the animation part, so i use gif animation to proceed.

my visual flow explaine:
1st thing will show a big paper-roll (it’s close), when i click on the paper-roll, it will scale small and then will move to the left side, and then the next frame will be roll out the paper-roll form left to right.

:((

  • 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-06-17T10:53:40+00:00Added an answer on June 17, 2026 at 10:53 am

    You can use a callback function with things like this to detect when the first thing has finished it’s intended operation…

    $('#divA').delay(500).fadeIn('slow', function() {
        // divA has finished loading.. NEXT.
        $('#divB').hide();
    });
    

    And you can continue with things like fadeOut() and more…

    $('#divB').fadeOut('slow', function() {
        // Oh look, divB has just faded out!
    });
    

    So finally, if you have #divA set to hidden, and #divB visible, #divA fades in and when it has finished fading in, #divB fades out.

    Of course, you can switch

    .fadeIn('slow', function() . . . to .show(function() ... instead if you don’t want the fade animations.


    Your final code, according to your question:

    <div id="divA" style="display:none">
        divA
    </div>
    <div id="divB">
        divB
    </div>
    
    <script type="text/javascript">
        $('#divA').delay(500).fadeIn('slow', function() {
            // divA has finished loading.. NEXT.
            $('#divB').fadeOut('slow');
        });
    </script>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Does anyone know there have any other way that (by not using json_encode and
Does anyone know do there have any way that I can encrypt the array
Does anyone know if there have been any changes in Azure publish to allow
In datasets there was a method WriteXml or ReadXml Does anyone have any idea
Does Kdiff3 have APIs available? Or is there any comparison tool's API available that
Does anyone have any good thoughts on how to code complex tabulations in R?
Does Java have (or is there a library available) that allows me to have
Does anyone have a good VBA way (or perhaps there is an MS Word
Does File.list() have a longer run time if there are more files in its
Does Windows have the notion of system-wide shared memory segments and is there a

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.