Edit: Seems like the only thing that works is to increase the margin top of the paragraph under the background video but it still doesn’t work on mobile
“Last longer” is only the time that parent section is physically on screen. The higher your parent section the more time its stickied child will stay on the screen. Increase it’s height by inputting whatever number will feel good to you in the element’s height property to achieve longer on-screen time. no need to touch any margins.
Wow! Thank you so much! I understand how it works now I increased the vh of the parent element to twice the size of the background video so now it stays twice as long as it’s initial height.
I updated the read only links.
Can you help me with my preloader? The jellyfish image is supposed to loop up and down. The website should also not be scrollable while it is loading and the navbar shouldn’t appear before the preloader is finished.
You need to show your preloader first in the “when page starts loading” part of your ix. Same where you have your jellyfish animation. And then remove it in the “when page finishes loading” part.
Your jellyfish won’t loop its animation unless you check “loop” in the animation options.
I changed it so it appears in “when page starts loading” and to dissapear “when page finishes loading” but the navbar still appears first and the jellyfish animation is very choppy it skips frames instead of smoothly going up and down.
EDIT: fixed the navbar appearing first by changing its position to relative and setting a z-index of 1 but the other issues still remain. The animation isn’t smooth at all
Could you help me add the social media icons to appear on the top right of the navbar while leaving the main links centered? It’s that last thing I need to fix : )
I want them to appear on the top right on desktop view and all on one line in the dropdown menu in mobile view.
I removed the container form nav, replaced it with 100% width div with the display set to flex. I placed all social links into one div, put this div inside nav, gave this div position:absolute, and placed it to the right.