I have a FAB contained in two div
tags from parent (app.component.html
) where one of them uses transform: translate3d.
When scrolling down the page, the FAB is 'stuck' and doesn't scroll.
I want this FAB to overlay this entire HTML page (specifically: <div class="page-content">
)
HTML:
<div cdk-scrollable="" class="mat-sidenav-content" ng-reflect-ng-style=" " style="margin-left: 0px; margin-right: 0px; transform: translate3d(0px, 0px, 0px);">
<div class="page-container">
<router-outlet></router-outlet>
<app-carbuilder _nghost-wxw-148="">
<button style="position: absolute;bottom: 16px;right: 16px;z-index: 5" data-toggle="collapse" data-target="#demo" aria-expanded="false" aria-controls="demo" md-fab>
<md-icon>
directions_car
</md-icon>
</button>
<div class="page-content">
<p>content</p>
</div>
(Native image upload didn't work)
Here's how it looks before & after scroll: