motion
motion copied to clipboard
[QUESTION] Please ensure that the container has a non-static position...
Hi @mattgperry
I have the following message in the console :
Please ensure that the container has a non-static position, like 'relative', 'fixed', or 'absolute' to ensure scroll offset is calculated correctly.
The container is thehtml element, is this also true for this element, or can I ignore the warning?
Thanks!
Could you spin this up in a codesandbox? It helps me investigate and write a test against it
Here is the link: https://codesandbox.io/p/sandbox/95ttr2
Thanks @mattgperry
In your root layout file make sure you're setting a non-static position (e.g. "relative") to your <html> and <body>