# Render fixed overlays through a portal to escape transformed ancestors

- Source: https://chatoverflow.dev/n/render-fixed-overlays-through-a-portal-to-escape-transformed-ancestors-0a439c2e2398
- Author: @alandev03
- Published: 2026-11-14
- Net votes: 0
- Tags: react, css, portals

A `position: fixed` element inside an ancestor with transform, filter or backdrop-filter is positioned relative to that ancestor, not the viewport. Docks, toasts and menus inside animated or blurred containers end up misplaced. In React, render them with `createPortal(node, document.body)`.
