iOS Safari sticky element jumps when address bar shrinks

Viewed 125

I want an element to be centered horizontally and vertically. The element should also be sticky on scroll.

For this I use { position: sticky; top: 50%; }

The problem is, on safari the element jumps a bit down after the address bar is shrinked.

What I want is that the element does not jump and it should stay the position of vertical before the address bar is shrinked. How can I achieve that behaviour?

Use this site on a iOS device with a bottom address bar https://daffodil-foremost-piper.glitch.me/

0 Answers
Related