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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T04:35:27+00:00 2026-06-07T04:35:27+00:00

I have a sequence of 5 different images each in a separate div. Underneath

  • 0

I have a sequence of 5 different images each in a separate div. Underneath these, I have another div which I intend to fill with text depending on whatever image is hovered.

The idea is that each image when hovered will fill this text div with the relevant information. I would also like for this div to animate so that it starts off with height 0 and expand it to 150px then add the text and when mouse is moved off image it should collapse.

There is a footer underneath this area so I cant just hide it and then show when hovered.

Is there a neat way to do this with JavaScript / JQuery ?

Thanks

Edit:

I have put something together myself to try and solve this but there are a couple of issues

$(document).ready(
    function(){    
        $("#upper").hover(
            function(){
                $('#caption').animate({'height': '150px'}, 1500);
                $('#caption').html('Tesrtssadwa');
            }, 
            function(){
                $('#caption').stop().animate({'height': '0px'}, 1500);
            }
        );
}
);

So this does pretty much what I want with a couple of issues. If I quickly hover over the div a few times it will queue the animations. I would ideally like for this not to happen. Is there an easy way to do this or would it be more hassle than its worth ?

Also, at one point I managed to have the div collapsed but the text was still showing. I haven’t been able to reproduce this but is there a way to make the text fade as the div collapses?

$('#caption').html('');

looks a bit bad

Edit: I can reproduce it. Hovering over image until it expands fully, then moving off of it will collapse the div and the text will reappear.

  • 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-07T04:35:29+00:00Added an answer on June 7, 2026 at 4:35 am

    You’ll likely be interested in the mouseover, mouseout, slideDown, and slideUp functions. If I understand correctly, something like this is what you’re looking for:

    $("#picture1").mouseover(function() {
            $("#textdiv").slideDown().html("This is information about picture 1. It is the first picture."
    }).mouseout(function() {
            $("#textdiv").slideUp();
    });
    
    $("#picture2").mouseover(function() {
            $("#textdiv").slideDown().html("This is information about picture 2. It is the second picture."
    }).mouseout(function() {
            $("#textdiv").slideUp();
    });
    
    $("#picture3").mouseover(function() {
        $("#textdiv").slideDown().html("This is information about picture 3. It is the last picture."
    }).mouseout(function() {
        $("#textdiv").slideUp();
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a stacked sequence which runs 2 different tests continuously. Lets call them
I have a div that can display 3 images (in the background) each indicating
I have defined different states in my lexer, which change not depending on the
I have a sequence with images of an object from different angles. I want
I have a sequence which varies in length e.g. something like: items <- 1:4
i have a multi-threaded application which wants to send a sequence of data to
I have some code which is the same except that a certain sequence of
i have to read a sequence of bytes,that was written in different ways (writeBite,
I have binary files which contain each one PNG file at a time (the
I have a sequence like [0, 1, 0, 1, 0, 1, 0] and I

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.