Streaming live at 10am (PST)

Full Page Tabs - Default To Top


#1

Hello,

I’ve created full-page tab panels for a project rather than using separate pages. By default, when you scroll down on the open tab panel and then click to another tab it lands at the same scrolled spot on the panel as the previously viewed tab (rather than starting at the top).

I’d like to force each panel to open at the top when a tab button is clicked.

Thanks for any help on this!

Read Only: https://preview.webflow.com/preview/test9859?preview=ec9048ad716a4eeb20c527e6c527f51e

Live Page: http://test9859.webflow.io/job/test


Here is my site Read-Only: https://preview.webflow.com/preview/test9859?preview=ec9048ad716a4eeb20c527e6c527f51e


#2

Hi @jobu

I don’t see the custom code I gave you earlier in your project. Can you place it back in?

<script>
$(".job-tab-link").click(function() {
$("html, body").animate({ scrollTop: 0 }, "slow");
return false;
});
</script>

#3

That did the trick! I missed a piece of the code before. Thank you!