Skip to main content

scroll_to_section

Function scroll_to_section 

Source
pub fn scroll_to_section(id: String)
Expand description

Bring the element with id to the top of the page, under the sticky nav (the target’s scroll-margin-top sets the gap), waiting up to ten seconds for it to be rendered.