UX Mobile Page scrolling...

On mobile i have this weird shiftin where container goes up and down when scrolling. I dont understand why it does this, its not because of the gsap animation because i tested it. I also made the font bigger and it does that but why. Or if its not the font, what does that. https://batman4ever87.github.io/jussi/
Jussi Valli - Toimittaja
Urheilutoimittaja Kankaanpäästä
14 Replies
Jochem
Jochem•8mo ago
it's very likely the use of dvh on the height of the hero when you scroll on mobile, the height of the viewport changes as the URL bar folds away, and that means your page reflows with the changing dvh value
Jochem
Jochem•8mo ago
Kevin has a video about viewheight units: https://www.youtube.com/watch?v=ru3U8MHbFFI
Kevin Powell
YouTube
Use these instead of vh
Looking to step up your CSS game? 👉 https://kevinpowell.co/courses?utm_campaign=general&utm_source=youtube&utm_medium=viewportunits I have a bunch of courses, including several free ones. I see people use vh a lot, and then complain that it doesn’t work the way they thought it would, so in this one, I explore a few other options that we have,...
darkiz0131
darkiz0131OP•8mo ago
God damn. You are correct! That was the problem. Thanks man! Now its fixed. Cheers buddy.
Jochem
Jochem•8mo ago
Glad to help!
darkiz0131
darkiz0131OP•8mo ago
Found another problem. The content is slightly overflowing to the right on mobile. I made the marquee (react component anyway) to overflow hidden and body is overflow-x hidden. Still its slightly overflowing.
darkiz0131
darkiz0131OP•8mo ago
Jussi Valli - Toimittaja
Urheilutoimittaja Kankaanpäästä
Jochem
Jochem•8mo ago
your rotated "scroll down" image is pushing out of bounds
darkiz0131
darkiz0131OP•8mo ago
ohh yea! Damn. What would i do without you man! Haha thanks again
Jochem
Jochem•8mo ago
haha, glad to help again 🙂
darkiz0131
darkiz0131OP•8mo ago
another problem: there's minimal layout shift on the hero section. I cant figure how do i fix it. I changed min-height and height of the hero or is it the GSAP animation what does it. I think it is the background image. Also overall, what do you think about the layout so far, fonts (i havent paid that main font yet), colours and all?
Jochem
Jochem•8mo ago
your best bet is probably to make a new post for new issues. I don't think I'll be able to look at it today or tomorrow, got a busy couple days at work and at home
darkiz0131
darkiz0131OP•8mo ago
Ohh, i thought i can pump up old thread up 😄
Jochem
Jochem•8mo ago
we try to keep threads to one topic, so that if people are looking for similar problems, they can find them more easily. A thread with less history is also easier for people to jump into and help. The layout shift is probably a good post for #front-end, feedback is #ui-ux And yeah, you can bump posts, but mostly to get it back to the top of the topic list if the problem isn't solved yet (also, these aren't super hard rules. I'm just saying I won't be able to look for the next couple of days, and you're more likely to get help from others with a fresh thread in the right channel)
darkiz0131
darkiz0131OP•8mo ago
Yes. I'll do that! Thanks
Want results from more Discord servers?
Add your server