#Position of element
87 messages · Page 1 of 1 (latest)
Hey @spare lava ! You want it to always stay on top there?
You should try using "sticky" positioning in the prototype tab
I want it to follow to viewport down, when the user scrolls down you should still see that element, its an extra nav so users can always go to a page whenever they want
yeah i meant if you want it to always stay at that part even when scrolling (so never disappear)
wouldn't sticky create this effect?
i might be confused
@spare lava
when I try sticky it stays on the same position, I am unsure how to explain this better 😅
ye, the top from the viewport
like 0 0?
euh a little confused by that but I can test it out if you explain what I need to do
i meant like at 0 0 coordinate?
Do you know what I mean with viewport?
when you say "top from the viewpoint"
it's a typo xd
i mean i think i understand what you mean by top from the viewpoint
im just trying to clarify if you want it to be exactly onn top top at 0 0 coordinate
viewport is what the user can see
yeah thats what i thought
and thats what im also talking about
im just trying to clarify if you want it to always be in the 0 0 coordinate of the viewpoint
I want it like about this high
or if you want it to have that space on the top a bit
okay, you want it that high no matter what the viewpoint is, is that correct?
yes
fixed positioning should work in that case
it's already on fixed positioning, I want it to go down while the user is scrolling down
with fixed positioning it should. Could you send a screenshot of your layer setup?
the fixed navbar needs to be in the layer that can scroll
isnt this what you want?
your navigation is not fixed positioned
yes
it is absolute positioned
thats okay, but it also needs to be fixed
from the prototype tab (where the sticky is available)
it says the contents needs to be bigger on the frame it's currently before scrolling can work
in the overflow section
yeah so you likely want to put vertical scrolling on "Desktop-1"
and then you want to bring the Nav to be on the same level as "Page"
and you want to make sure that desktop-1 is smaller than page (so the page is overflowing desktop-1)
thats what i meant here that the navbar needs to be in the layer that can scroll
a layer can only scroll if something is overflowing it
I have now this
Is your page bigger than the desktop-1 as mentioned above?
I assume it is now
the overflow is not on nav
but on desktop
the desktop is what you can scroll
not the nav
- for nav you want it to be fixed, not sticky
I have it now tho it's a bit to low
I mean its just wherever you position it
I have this now, it should only move with the viewport if at a certain height
okay that wasnt really specified, but in that case you cant really do that. The best you could do is "sticky" but then it wont have the extra space on the top
what you can try to do is to put it in another frame where you do have that extra space on the top
and then put sticky on that
that should give it the illusion
sticky basically starts the "fixed" position, once the top of the element reaches the top (y=0) viewpoint
I have specified with "on top of the viewport" but that wasn't a good explanation my appologies.
I'il leave it at this for now
thx
another fixed frame? could you show me?
no, it is just one frame that is sticky
you wont need fixed on the nav anymore, but you need to put the nav into another frame that has the extra space on top
if you would put sticky on the navigation directly, you wouldn't get the extra space on top
it's not really working for me 😅
Could you show / describe what you did?
Your navigation bar is not in the frame
and the frame needs sticky
navbar doesnt need fixed
tyvm, I have put in the frame now and it's working like I want it
basically you are making a new navigation bar, where you have the original navigation bar in a frame w extra space
so you can have that extra space
if you didnt have the extra frame, the navigation would stick exactly on the top (with no extra space)
thx for the help, not sure if I will be able to reproduce it but that's a later concern.
just try to understand what sticky means and how scrolling works and you should be able to
thats why i tried to explain how it works here so you could make it based on understanding the concept instead of following steps
but good luck on it and feel free to ask again if it wont workout next time!