Fede
(Federico)
January 20, 2023, 11:50am
1
Hi there,
At home section, the 5th slide not adjust to the “real view” bottom on mobile safari browser.
How can I solve this? or how to force the browser send to the bottom, in the first slide…
Thanks everyone
Here is my site Read-Only: [LINK ]1
(how to share your site Read-Only link )
Stan
(justAnotherDeveloper)
January 20, 2023, 12:21pm
2
hii @Fede maybe this will help to solve your request
Hi community,
I know this has been a known issue for mobile browser but I couldn’t find a way to fix it. Basically I’m setting a 100vh section with a background image. It works well on desktop but when I tested it on my phone, there is a small amount of background image below the fold. I tried to enter the custom css and javascript code below but still didn’t work. Can someone help me with this?
[image]
Here’s the code I used:
.homepage_container {
height: 100vh;
height: calc(va…
1 Like
Fede
(Federico)
January 20, 2023, 1:13pm
3
Thak you very much @Stan but, not sure if I understand…
Just copy paste this code to the page custom code, but not working…
const appHeight = () => {
const doc = document.documentElement
doc.style.setProperty("--vh", `${window.innerHeight}px`)
}
window.addEventListener("resize", appHeight)
appHeight()
:root {
--vh: 100%;
}
html,
body {
padding: 0;
margin: 0;
overflow: hidden;
width: 100vw;
height: 100vh; /* as fallback */
height: var(--vh);
}
Stan
(justAnotherDeveloper)
January 20, 2023, 2:25pm
4
hi @Fede I have checked live website on iPad and iPhone and first slide (and all others) are aligned to bottom as expected.
1 Like
Fede
(Federico)
January 20, 2023, 2:58pm
5
Hi @Stan , the problemis with the last slide (background green) with a small text at the bottom left. This text is below the browser and should be seen
Thanks a lot
Stan
(justAnotherDeveloper)
January 20, 2023, 6:17pm
6
hi @Fede vertical snap has always some issues and need more attention to make it work correctly in all browsers on desktop and mobile. Sorry I cant help more but here is video with my opinions but first you should visit official WF page made in Webflow to find some example to study.
Good luck
Fede
(Federico)
January 20, 2023, 6:27pm
7
Thanks for everything @Stan
1 Like
Stan
(justAnotherDeveloper)
January 20, 2023, 6:33pm
8
I had to make second video as first didn’t have a sound.
1 Like