I see. I believe I understand what you’ve explained.

For the solution using states - could you elaborate more on this?

From what I gathered, I could use states to load the conditions on page load, but I’d still be using scroll positions within them. I don’t think this was what you were trying to say because you advised not to use scroll positions/width/height dynamic variables.