Jump to anchor link rather than scroll

Is it possible to have an in-page anchor link jump directly to a section rather than scrolling through other sections?

1 Like

I found this related article:
http://forum.webflow.com/t/customize-webflow-anchor-scrolling-behavior-speed/301

I tried adding the line “data-scroll-time = 0” to custom code body but nothing changed. Is there additional code I need to include? Am I entering the code in the correct spot?

1 Like

Hey there,
to make this work, as callmevlad mentioned in the post you referenced, you can “set the data-scroll-time attribute on your body tag” - this is in the designer itself.

To set an attribute select the body using the navigator tab in the designer, then go to the settings tab and click on the plus button for custom attributes, enter the data (shown below)

Note: you can affect anchor scrolling speed on just one anchor instead by adding this attribute to the related element instead.

Hope this helps :slight_smile:

2 Likes

you can also jump directly to the link. but it requires the full path to the
page including the domain name and folder

ie: http:/mydomain.com/thepage.html#thesectionID

This work well if you have multiple pages and want ot jump to something on a different page.
say for example - a contact form or a map

3 Likes

That did the trick! Thanks so much. I’ve never used the custom attributes panel before. Very helpful.

1 Like

This makes total sense. I’ve used this many times to jump to anchors on separate pages but never considered it for an in-page anchor. Thanks!

Really glad it helped @Port_of_Folio! Yes, it can be a very handy panel :slight_smile:

1 Like

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.