Scroll's the given element's viewport so the first rows of the element are visible for the user.
The viewport (the container that is going to be scrolled) is the closest parent of the element that is either:
Many applications have a navigation bar fixed to the top or bottom, obstructing the view on an element.
You can make
up.reveal() aware of these fixed elements
so it can scroll the viewport far enough so the revealed element is fully visible.
up.reveal() aware fixed elements you can either:
Whether to scroll the viewport so that the first element row aligns with the top edge of the viewport.
A promise that will be resolved when the element is revealed.