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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T04:32:26+00:00 2026-05-26T04:32:26+00:00

Check the bottom for revised edition Alright, here’s the issue. I have a li

  • 0

Check the bottom for revised edition

Alright, here’s the issue. I have a li with a div inside, and I’m trying to hover the li to get the div to slide up into view.

Here’s the HTML:

<li id="one">
    <div>
        <h4>title</h4>
        <p>description</p>
    </div>
</li>

Right now I have this in my CSS:

#one div { display: none; }

And this for my JS:

$(document).ready(function() {

    $('#one').hover(function() {
        $('#one > div').css({ display : 'block' });
    });

});

I know I could just used CSS psuedo :hover to make it pop up, but I thought if I wanted to to a slide effect then I might as well do it all in JS. The first problem is this isn’t working :|. Once I get it to just show up I want to add a slide effect to it, and I’m not sure if this is the right way to approach doing that.

Thanks guys/gals

revised

New JavaScript

$(document).ready(function() {

    $('#one').hover(function () {
        $('#one > div').slideToggle();
    });

});

This works! Although it comes down from the top, and I planned on having it come up from the bottom.

  • 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-26T04:32:26+00:00Added an answer on May 26, 2026 at 4:32 am

    Part of the problem is that slideUp() in jQuery hides the selection and slideDown() shows the selection. To have an element slide up into view, you need to do your own .animate().

    CSS:
      #one {
        overflow: hidden;
        position: relative;
        border: 1px solid gray;
        height: 40px;
      }
    
      #one div { 
        position: absolute;
        bottom: -100%;
      }
    
    jQuery:
      $('#one').hover(
        function() {
            $(this).find('div').animate({
                bottom: '0%'
            }, 'fast' );
        },function() {
            $(this).find('div').animate({
                bottom: '-100%'
            },'fast');
        }
      );
    

    jsFiddle: http://jsfiddle.net/blineberry/mrzqK/

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

Sidebar

Related Questions

Check my link below. I have my footer stick to the bottom of the
Solved....Check at bottom of Body.. I am using XCODE 4 I have an Money
I have a RadioGroup with four check buttons. I'd like to create a slide
Problem Solved Eventually check my solution in the bottom Recently I am trying to
Check out this quote from here , towards the bottom of the page. (I
Check this link! I am having the hardest time trying to figure out why
Check out this jsbin . I have a form with a custom button that
I have a city simulation game and try to find a way to check
NOTE: If you don't want to read this, check TLDR version at bottom of
Currently I am trying to check the screen boundaries by seeing if a CCSprite

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.