S
Spizzat2
I've got some javascript that will show or hide an element on the page
when a user activates it. The problem I'm having is that the content
changes the length of the page, so if the user scrolls to the bottom
of the page with the element showing, and then said user hides the
element, the page has to shrink down back to its original length.
The problem is that while it's shrinking, the page flickers badly. It
looks bad enough to give someone seizures.
I'm not sure if this happens in other browsers because the page
currently only works in Firefox.
I've considered just automatically scrolling to the top of the page
when content is hidden, but I feel that could be just as disorienting
to the user. My other thought was to include the whole result inside a
div with a set height and allow that to scroll, but I'm not sure if
the div would handle changing content length any better than Firefox
does. Does anyone have experience with that?
Basically, I'm just wondering if anyone has any suggestions on how to
reduce/remove the effect.
Thanks.
when a user activates it. The problem I'm having is that the content
changes the length of the page, so if the user scrolls to the bottom
of the page with the element showing, and then said user hides the
element, the page has to shrink down back to its original length.
The problem is that while it's shrinking, the page flickers badly. It
looks bad enough to give someone seizures.
I'm not sure if this happens in other browsers because the page
currently only works in Firefox.
I've considered just automatically scrolling to the top of the page
when content is hidden, but I feel that could be just as disorienting
to the user. My other thought was to include the whole result inside a
div with a set height and allow that to scroll, but I'm not sure if
the div would handle changing content length any better than Firefox
does. Does anyone have experience with that?
Basically, I'm just wondering if anyone has any suggestions on how to
reduce/remove the effect.
Thanks.