Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
196 views
in Technique[技术] by (71.8m points)

reactjs - How to Find the Viewport Size Between the Header and Footer on Safari?

I am currently doing animation on a mobile-friendly app and I am testing it with safari ios for the iphone 6. I would like to know how to find the viewport height of the visible space below the header and above the footer.

Heres what Im looking for:

enter image description here

^Im looking for the distance of the smaller red bracket in the visible range of the viewport.

enter image description here

^There are two modes, open and closed. So I would need to know the size has changed and the size. Usually, the bottom bar disappears during and after rotation but before any user touch input, then it resets back to the first picture.

Any help would be appreciated!

question from:https://stackoverflow.com/questions/65939144/how-to-find-the-viewport-size-between-the-header-and-footer-on-safari

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...