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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T16:26:11+00:00 2026-06-03T16:26:11+00:00

I want have animation on hovering a which shall slide from top and on

  • 0

I want have animation on hovering a

  • which shall slide from top and on mouseout it shall slidetop.
    I have done all but there is a little problem.
    Please view my demo here

    My codes are
    CSS

        #nav{width:200px;
    height:60px;
    background:#096;
    list-style:none;
    } 
    
     #nav li
     {
         width:200px;
         height:60px;
         float:left;
         position:relative;
    
    }
    
         #nav li a
         {
             width:200px;
             height:50px;
             background:#09F;
             color:#000;
             display:block;
             position:relative;
             margin:0;
             z-index:100;
    
             }
    
             #nav li a:hover
             {
                 color:#fff;
                 }
    
             #nav li .hover
             { width:200px;
             height:50px;
             background:#000;
             color:#0FF;
            display:none;
           background-position:0 0;
           position:absolute;
           top:0;
             margin:0;
             z-index:0;
             opacity:0.9;
    
                 }
    

    Script

    $(document).ready(function()
     {    
      $('#nav li a').append('<div class="hover">');
    
      $('#nav li a').hover(function (){
          $('.hover').stop(true, true).slideDown('1000');    
    
            }, 
    
            //Mouseout, fadeOut the hover class
            function() {
    
                $('.hover').stop(true, true).slideUp('1000');   
    
        }).click (function () {
    
            //Add selected class if user clicked on it
            $(this).addClass('selected');
    
    
          });
    });
    

    HTML

    <ul id="nav">
    
       <li><a href="index.html">Home</a></li>
    
    
      </ul>
    

    But I am viewing only the .hover div is sliding but my Home text is not viewing. I have added z-index to tag also but then also the text is not viewing while slide is working.

    Please help me to sort it out.
    Thanks to everyone in advance.

    • 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-03T16:26:12+00:00Added an answer on June 3, 2026 at 4:26 pm

      Set z-index: -1 for .hover. It will solve the problem.

      DEMO: http://jsfiddle.net/DSusn/2/

      And pay attention to your fadeIn and fadeOut calls. If you need to set speed as number of milliseconds, its’ arguments should be an integer, i.e. without quotes fadeIn(1000).

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

    Sidebar

    Related Questions

    I have a problem with moving animation. I want to create animation which start
    I have a menu with an animation going on, but I want to disable
    I have animation that is an image moving from right to left, which is
    If I want to have 20 objects all running their own animation on the
    I have an element which I want to have width: 50% . But when
    So, I essentially have what I want already, very simple, but there are some
    I Have Animation In My ResourceDictionary But I Want Call Animation In My C#
    I want to have some kind of bounce effect in my animation plugin but
    I have an animation and I want it to play it just only once.
    I have an animation running in the background, and I want to register 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.