I am trying to have a large scale CSS transform animation for an element to make it appear/disappear. The transform is large in terms of size, as during that transform, the element can become larger than the screen, and thus will affect the scrollbars.
I would like it to not affect the scrollbars, while at the same time still allowing the page to have scrollbars (so body / overflow: hidden is not an option).
This would be for a generic effect, and thus I have no control on the page layout where the effect will run.
The best thing I could come up with is to have a full page div, with overflow hidden, and run the effect there, however that means moving the element out of its normal DOM, which break all CSS styling depending on its parent elements/classes.
Another approach I tried is to remove the element from the flow using "position: fixed", it eliminates the scrollbar issue, but doing so affects the layout of other elements on the page (as they will be moved to fill the newly created "hole" in the layout).
Is there another option to indicate that an element can overflow its parent, while not affecting the bounding box of its parents (and thus not triggering any scrollbars) ?