This feature is experimental. It may be changed or removed in a future version without prior notice or deprecation.
Reveals an element matching the given #hash
anchor.
Other than the default behavior found in browsers, up.revealHash
works with
multiple viewports and honors fixed elements obstructing the user's
view of the viewport.
When the page loads initially, this function is automatically called with the hash from the current URL.
If no element matches the given #hash
anchor, a resolved promise is returned.
up.revealHash('#chapter2')
A promise that is fulfilled when scroll position has changed to match the location hash.