html - Chrome z index when animating slide in menu -
i trying create slide in menu similar sidenav of https://material.angular.io/components/sidenav/overview except have fixed window can opened anywhere.
the linked plnkr works correctly when run in plnkr window. running same code locally not work correctly. https://plnkr.co/edit/f5zolcf9hxlhzeu0bqil
the slide in menu correctly positioned on top of rest of page background on other content. when running locally in chrome, menu , background overlay come front once animation complete.
it looks elements being relatively positioned causes issue. when using simple flex layout , not using bootstrap, elements appear correctly in chrome. div around slider template seems correct issue in chrome not sure why.
<div> <div class="slider__content" [class.slider--show-backdrop]="open"> <div>header</div> </div> <div class="slider-backdrop" [class.slider--show-backdrop]="open" (click)="close()"> </div> </div>
some resources have found jquery fadein on position:absolute causes z-index issue , https://developer.mozilla.org/en-us/docs/web/css/css_positioning/understanding_z_index/the_stacking_context.
is bug in chrome or not understanding animations , z-index?
Comments
Post a Comment