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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T14:25:53+00:00 2026-06-11T14:25:53+00:00

When I hover over a div, I want another div (which starts as display:none

  • 0

When I hover over a div, I want another div (which starts as display:none) to partially expand downward, revealing only the top of its contents. How can I partially expand a hidden div with jQuery? Preferably so that the div fades out towards the bottom. There don’t seem to be parameters for the toggle() command or fadeIn() that allow partial expansion.

Edit

Unfortunately, the requirements don’t allow a separate ‘teaser’ div to be used. The hidden div containing all the text has to be partially expanded.

  • 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-11T14:25:54+00:00Added an answer on June 11, 2026 at 2:25 pm

    Let’s say you want to only show the top 30 pixels of the hidden div:

    var HowManyPixelsToShow = 30;
    
    $(body).on({
       mouseenter: function() { ShowInfoBoxDiv($(this)); },
       mouseleave: HideInfoBoxes
    }, '.info-box');
    
    function ShowInfoBoxDiv(TheInfoBox) {
       //this assumes the 'more-info' divs are located after the '.info-box' divs
       TheInfoBox.next('.more-info') 
                 .css('overflow':'hidden')
                 .height(HowManyPixelsToShow)
                 .slideDown(500);
    }
    
    function HideInfoBoxes() {
      $('.more-info').hide();
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to hover over a table element, and display a popup box in
My list is not display when I hover over it. For the top navigation
I Want to change the background of a Div when Hovering over another Div
My Code I have a div that when you hover over it shows different
Is it possible to store DIV name into variable when I hover over it?
how can I give an alert when one div hovers over another div upon
I have a script that shows hidden text when you hover over a div.
I want to create a hover tooltip which displays what's inside the span and
I want to populate a List dynamically and display the list when i hover
I have two DIV elements. Inside DIV_1 i want certain images to be display

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.