Liking cljdoc? Tell your friends :D

clerk.core

Clerk: In-page navigation (scrolling) for SPAs. Tries to mimic the default browser behaviour for ”regular” sites. Use Clerk together with your router and HTML5 history manager of choice.

New navigxation history entries are always scrolled to the hash target in the location, or, when the target is missing, the top of the page. When the user is navigating to existing history entries we restore the scroll position. The reason for this is that the browser's own restoration is not timed with the rendering of the page and this crates a 'jumpy' experience. Unfortunately only Chrome supports a reliable way to disable the browser's scroll restoration, but at least there we can create a smooth scroll restoration experience.

Clerk: In-page navigation (scrolling) for SPAs.
Tries to mimic the default browser behaviour for ”regular” sites.
Use Clerk together with your router and HTML5 history manager of choice.
          
New navigxation history entries are always scrolled to the hash target in the location,
or, when the target is missing, the top of the page.
When the user is navigating to existing history entries we restore the scroll position.
The reason for this is that the browser's own restoration is not timed with the rendering
of the page and this crates a 'jumpy' experience. Unfortunately only Chrome supports a
reliable way to disable the browser's scroll restoration, but at least there we can create a
smooth scroll restoration experience.
raw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close