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

  • Home
  • SEARCH
  • 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 9214703
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T02:01:44+00:00 2026-06-18T02:01:44+00:00

I am trying to make circle navigation animated with CSS, but the problem is

  • 0

I am trying to make circle navigation animated with CSS, but the problem is that when the mouse hovers over one of the menu links, all the menus use the effect that I wanted to be only on the selected link. Is there is any way to do this?

here is the link for my result: http://jsfiddle.net/amromar/Fgnmw/

CSS:

#nav li {
list-style:none;
list-style-type:none;
display:table-cell;
ul.box li {  
    display: block;
    width:100px;height:100px;border-radius:1000px;font-size:20px;color:#fff;line-height:100px;text-align:center;background:#000; 

}
ul.box li{ -webkit-transition: width 0.2s ease, height 0.2s ease;  
    -moz-transition: width 0.2s ease, height 0.2s ease;  
    -o-transition: width 0.2s ease, height 0.2s ease;  
    -ms-transition: width 0.2s ease, height 0.2s ease;  
    transition: width 0.2s ease, height 0.2s ease; 
    overflow: hidden; }  

ul.box:hover li{  
display: block;
      width:200px;height:200px;border-radius:1000px;font-size:30px;color:#fff;line-height:100px;text-align:center;background:#333;
      overflow: hidden;  
} 

HTML:

<ul class="box" id="nav" >
<li >home</li>
<li><a href="#">about</a></li>
<li>our tour</li>
<li>contact</li>
<li>hellow</li>
</ul>
  • 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-18T02:01:46+00:00Added an answer on June 18, 2026 at 2:01 am

    I originally thought (and had posted then deleted) that you just needed to change the :hover to the li element, so this selector ul.box:hover li to this ul.box li:hover. But that was only part of the solution, because the sizing problem was your display: table-cell on the li elements, which was forcing them to expand to the height of the wrapper. I believe I have come up with an acceptable solution to get what you seem to want to achieve (has similar effects as the display: table-cell only without the height issue).

    Here is the fiddle.

    CSS

    #nav { 
       max-width: 500px; /* this keeps your five circles no more than 100px wide */
       margin: 20px auto; /* only needed if you are centering the nav */
       /* optional; you may want to clear the floats or give the nav a "float" to wrap
          the nav around the floated children inside. Whether you need to do this or 
          not depends on your application*/
    }
    
    #nav li {
       list-style:none;
       list-style-type:none;
       display:block;
       float: left;
    }
    
    ul.box li{  
        width:20%; /* Using the wrapper to set the width, 100px will be max without animation */
        height:100px; /* Keep the height fixed, even if narrow width "squeezes" the circle */
        border-radius:50px; /* half the max-width is all you need */
        font-size:20px;
        color:#fff;
        line-height:100px;
        text-align:center;
        background:#000;     
    }
    
    ul.box li { /* no changes here */
        -webkit-transition: width 0.2s ease, height 0.2s ease;  
        -moz-transition: width 0.2s ease, height 0.2s ease;  
        -o-transition: width 0.2s ease, height 0.2s ease;  
        -ms-transition: width 0.2s ease, height 0.2s ease;  
        transition: width 0.2s ease, height 0.2s ease; 
        overflow: hidden; 
    }  
    
    ul.box:hover li {
        /* cause the other li's to "shrink" to 
           accomodate the larger size of the one being hovered */
        width: 15%; 
    }
    
    ul.box li:hover {  
          width:40%; /* animate to twice the size for the one being hovered */
          height: 200px; /* make twice the fixed height */
          border-radius:100px;
          font-size:30px;
          color:#fff;
          line-height: 200px;
          text-align:center;
          background:#333;  
    } 
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to make a script that draws a circle for minecraft using
I'm trying to make an animation of a circle stroke that starts with a
I am trying to make a timer and I want a circle that is
I am trying to make a horizontal navigation menu , My menu items (li)
So im trying to make an adroid application that draws a stream of circles
I'm trying make an entity with doctrine that has three associations with other entities
Trying to make this jQuery filter that uses .find case-insensitive. For example, when the
Trying to make a small countdown timer in my app but it's not working.
I'm trying to make these icons with just CSS (except for the white icon).
I'm trying to make a Mastermind in Java. The code isn't really difficult, but

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.