Join the Webstudio community

Updated 4 weeks ago

Variables and sticky

Ah man variables are so nice. Now I can set a nav height var so when I make things sticky, they use this one var to ensure it doesnt overlap with my fixed nav. And I can change this by breakpoint πŸ”₯
Attachment
image.png
B
J
6 comments
What if there was "is-sticky" breakpoint?
Would it be more useful? Like set variable whether an element is sticky within scroll or not
I dont think for this particular use case, though having an is-sticky is something I've wanted in the past. Can't recall what it was though
Soon πŸ™‚
Add a reply
Sign up and join the conversation on Discord