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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T20:45:54+00:00 2026-05-25T20:45:54+00:00

So if you’re not already familiar, CSS3 transitions do not animate display: none since

  • 0

So if you’re not already familiar, CSS3 transitions do not animate display: none since it removes the targeted element from the DOM altogether. So here’s my issue. I have a sidebar with larger popup divs that appear on hover. Unfortunately Since I can only transition on visibility: hidden and opacity: 0 I have overscroll due to the visibly hidden divs being included in the layout and thus making a very long popup which is accounted for in the page’s scrollbar.

Looking for some creative solutions for how I can still animate without having the scrollbar all screwed up.

I’m developing local so I don’t have a live example to show, but you can see the problem in this screencast: http://dreamstarstudios.com/screencasts/2011-09-27_2111.swf

Thanks 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-05-25T20:45:55+00:00Added an answer on May 25, 2026 at 8:45 pm

    I’m assuming your popup is absolutely positioned so you could do the following:

    1. While hidden, set the popup top to a huge negative value. This moves it off the screen and gets rid of the scrollbar.
    2. On hover, set the top to the correct value and transition the opacity value.
    3. Make sure that your CSS transition rules are only for the opacity property.

    HTML

    <a href="">Popup go now</a>
    <div class="popup">
        My cat's breath smells like cat food...
    </div>
    

    CSS

    .popup {
       position: absolute;
       top: -2000px;
       opacity: 0;
    
       transition: opacity 1s ease-in-out;
    }
    
    a:hover + .popup,
    .popup:hover {
       top: 30px;
       opacity: 1;   
    }
    

    Here’s the above in action.

    Update: To add the left swing, and clean up the mouseout animation, you can use the following code:

    .popup {
       position: absolute;
       top: -2000px;
       width: 300px;
       left: 0;
       opacity: 0;
    
       /* Animate opacity, left and top  
          opacity and left should animate over 1s, top should animate over 0s
          opacity and left should begin immediately.  Top should start after 1s. */
       transition-property: opacity, left, top;
       transition-duration: 1s, 1s, 0s;
       transition-delay: 0s, 0s, 1s;
    }
    
    a:hover + .popup,
    .popup:hover {
       top: 30px;
       left: 30px;
       opacity: 1;  
    
       /* All animations should start immediately */
       transition-delay: 0s;
    }
    

    It does this as follows:

    1. Animation for multiple properties are specified (opacity, left, top).
    2. transition-delay prevents the top value from being changed until the opacity and left animations are complete. The trick here is that when the element is :hover, there is no delay (opacity, left and top animations all start at once). However once :hover is no longer active, the top animation waits 1 second before starting. This gives opacity and left enough time to finish.

    Here’s the updated example.

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

Sidebar

Related Questions

I am currently running into a problem where an element is coming back from
For some reason, after submitting a string like this Jack’s Spindle from a text
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I am trying to understand how to use SyndicationItem to display feed which is
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
In my XML file chapters tag has more chapter tag.i need to display chapters
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
I have a text area in my form which accepts all possible characters from
i want to parse a xhtml file and display in UITableView. what is the
I need a function that will clean a strings' special characters. I do NOT

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.