Depending on the current screen, calculate the animation to use.
Currently, we do not support animations on resize as we cannot calculate the
width of the overlay container as it does not exist on first render cycle of React.
Drawback if animation only on mobile is enabled: if the window is first a mobile,
and the window gets resize it will reuse the animation on desktop again
Depending on the current screen, calculate the animation to use.
Currently, we do not support animations on resize as we cannot calculate the width of the overlay container as it does not exist on first render cycle of React.
Drawback if animation only on mobile is enabled: if the window is first a mobile, and the window gets resize it will reuse the animation on desktop again