Viewing 1 replies (of 1 total)
  • Plugin Author philbuchanan

    (@philbuchanan)

    It looks like you are using the accordion plugins built in scrolling feature, but you would actually like the page to scroll to the headline, not the start of the accordion. You seem to be working around that with an offset of 200 pixels.

    My suggestion would be to add the jump links to the headlines instead of the accordions.

    In the HTML you can add:

    <h2 id="application_engineering">Application Engineering</h2>

    The way the plugin works is by “watching” for changes in the URL and then animating the scroll. Once you have selected one, say Application Engineering, clicking it in the nav again will not change the URL, so the browser just does it’s usual jump, in this case to the top of the accordion (where the ID lives).

Viewing 1 replies (of 1 total)

The topic ‘Jumps to wrong place when loaded again’ is closed to new replies.