Hello, This is my first posting :)
If a parent elements has transform
properties, position: fixed;
of children elements does not be working.
That case, The children elements behave like position: absolute;
.
Solution to the problem
If a parent elements uses transform animation, Replace without transform animation. or Remove transform properties or Set transform: none;
.
Top comments (12)
Also if the parent element has a " will-change: transform; " attribute, the fixed child element will be relative to the parent
Also, if the parent element is using the perspective attribute, the fixed postion will not work in the child.
Big experience to me :) Thanks.
THANKS A LOT
omg dude, thanks a lot, I would never have guessed : D
Also, if the parent element has a
contain
attr with a value set tocontent
,layout
,paint
orstrict
than it will not work.Thanks... That was the solution :D
related for more details: stackoverflow.com/a/52937920/8620333
Solid, thanks Takaaki
Also, if the parent is using backdrop-filter: blur().
I spent 3 days on in
Absolute lifesaver bro thank you