overflow hidden hiding all content

sansSpoon

I have this pen, which is a snippet of a larger project, where I'm trying to hide a div as it gets transformed off to the left. The elements that needs to hide it's overflowed content is .fixed-strip and the element to be hidden is .strip. As soon as I add overflow: hidden; or overflow-x: hidden; to .fixed-strip it hides all the content, not just the transformed content.

.fixed-strip{
    max-width: 20rem;
    padding-left:  1.5rem;
    padding-right: 1.5rem;
    margin-left:  auto;
    margin-right: auto;
    position: relative;
}

.strip {
    display: block;
     background-color: fade_out(rgba(122, 116, 97, 1),0.6);
    left: 0;
    top: 1rem;
    width:300px;
    height:80px;
    position: absolute;
    transition: transform .5s ease-in-out;
    z-index: 1000;
}

The whole header has to be in a position:fixed; container for other reasons. Could this be causing the issue?

deg

I tried your pen, and if I understood what your problem is, try giving a suitable height to fixed-strip.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Overflow Hidden is hiding everything

From Dev

Overflow Hidden is hiding everything

From Dev

overflow:hidden is hiding everything on a webpage

From Dev

CSS Hover Scaling is unhiding overflow hidden content briefly then re-hiding

From Dev

overflow:hidden hiding borders but not the element that overflows

From Dev

Scrolling content within an overflow:hidden div

From Dev

showing the bottom of the div content with overflow hidden

From Dev

content inside :before gets hidden when setting overflow to scroll/hidden

From Dev

ng-show is Hiding All Content On Page

From Dev

Hiding expander when all content is collapsed

From Dev

ng-show is Hiding All Content On Page

From Dev

Overflow-x: hidden also hides y content

From Dev

content ::before over two divs with overflow-x:hidden

From Dev

horizontal scrollbar on div with dynamic content and overflow-y hidden

From Dev

Overflow hiding my image

From Dev

Hiding list in hidden list

From Dev

Hiding list in hidden list

From Dev

Hidden view in NSStackView not hiding?

From Dev

Not all content is animated inside a stack view when hiding it

From Dev

Allow vertical overflow while hiding horizontal overflow

From Dev

CSS overflow: auto hiding tooltip

From Dev

Issue on Hiding Overflow in Bootstrap CSS

From Dev

How to show/hide a section of content when a corresponding menu item is clicked, while hiding all other content?

From Dev

Button overflow hidden not working

From Dev

Firefox not respecting overflow: hidden

From Dev

IE + overflow: hidden

From Dev

Break out of overflow:hidden

From Dev

tbody overflow hidden not working

From Dev

Overflow hidden breaks layout

Related Related

HotTag

Archive