Streaming live at 10am (PST)

Auto Rotating Tabs - Now Anchoring

Has anyone else noticed that auto rotating tabs are now making the page anchor to the tab when it auto rotates? Maybe a webflow bug?

Any help on this would be greatly appreciated as it’s creating a poor user experience

Please see the script below


<script>
    var Webflow = Webflow || [];
    Webflow.push(function () {
      // DOMready has fired
      // May now use jQuery and Webflow api

// start everything
      var tabTimeout;
      clearTimeout(tabTimeout);
      tabLoop();

    // define loop - cycle through all tabs
    function tabLoop() {
        tabTimeout = setTimeout(function() {
            var $next = $('.tabs-menu').children('.w--current:first').next();

            if($next.length) {
                $next.click();  // click resets timeout, so no need for interval
            } else {
                $('.tab-link:first').click();
            }
        }, 8500);  // 8 second tab loop
    }

    // reset timeout if a tab is clicked
    $('.tab-link').click(function() {
        clearTimeout(tabTimeout);
        tabLoop();
        });
    });
</script>

Hoping someone from the Webflow team is able to assist with this issue.

Look at this post : AutoPlay Tabs - Any ideas?
You need to publish again, there has been a fix

2 Likes

Thank you so much @pepperclip for the heads up! Working as expected once again.

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