Auto-Rotate Tabs in Webflow

Поделиться
HTML-код
  • Опубликовано: 23 ноя 2024

Комментарии •

  • @sagedelaney2813
    @sagedelaney2813 3 года назад +9

    “How de do dat” should be a new series!!

  • @TomSommerseth
    @TomSommerseth 3 года назад +3

    Thank you for all your great and short tutorials!

    • @NikolaiBain
      @NikolaiBain  3 года назад +1

      Thank you for watching them! 🙌🏻

  • @02foreva
    @02foreva 2 года назад +1

    Hi Nikolai, fiiiinaaaally I have been able to fix the auto menu close problem - Thank you for the code snippet! I learn a lot from your videos!

  • @estevanbrout5902
    @estevanbrout5902 2 года назад +1

    Thanks for this tutorial !

  • @alexhartan
    @alexhartan 3 месяца назад

    Perfect, thank you Nikolai!

  • @c.rberyl3759
    @c.rberyl3759 Год назад

    Thank you for your video, very concise, and helped me to do something similar manipulating tabs in Webflow.

  • @cyrohan21
    @cyrohan21 3 года назад +1

    awesome!!! A great webflow tutorial.

    • @NikolaiBain
      @NikolaiBain  3 года назад

      Thanks Jun! Glad you liked it 🔥

  • @samueljaramillo7144
    @samueljaramillo7144 2 года назад +1

    you are a legendddd!

  • @ivo1833
    @ivo1833 2 года назад

    Awesome tutorial, thanks a ton!!

  • @mikepapahotel
    @mikepapahotel 2 года назад +5

    Hi Nikolai - any chance you could do a video on how to create vertical tabs like these from scratch in Webflow please?
    I've tried several times in the past with less than average results...
    Cheers! 😊👍🏻

    • @NikolaiBain
      @NikolaiBain  2 года назад +5

      More than happy to cover that in the future, might show off a couple of different ways to build nice tab elements 😊

    • @nathaliexu1940
      @nathaliexu1940 10 месяцев назад

      interested to
      @@NikolaiBain

  • @aloha2713
    @aloha2713 2 года назад +1

    Nice, again 👍

  • @ezekielrochat
    @ezekielrochat 2 года назад +1

    Awesome!

  • @derionlipford4201
    @derionlipford4201 Год назад +2

    Question - my auto rotate is stopping after the first one, any idea why this could be happening? I'm using a CMS powered dynamic tab list.

  • @ihsaan7807
    @ihsaan7807 3 года назад +1

    Smooth.

  • @diegoamendoza734
    @diegoamendoza734 2 года назад +1

    This animation is great bro. Thank you so much for it, I was looking at Asana's site and was looking for a way to build it like this. Just one question, do you think there is a way to start this animation when scrolling in view?

    • @NikolaiBain
      @NikolaiBain  2 года назад

      Oof would love to help but honestly not too sure, I remember that Timothy Ricks talks about how to do something similar in this video but you might have to do a bit of trial and error! ruclips.net/video/xiAqTu4l3-g/видео.html

  • @davefano
    @davefano 2 года назад

    Amazing!!

  • @giorginarimanashvili3460
    @giorginarimanashvili3460 2 года назад

    Hi, can you show us how to create tabs like these but with different time intervals?

  • @liamfinlay2163
    @liamfinlay2163 3 года назад +1

    hey! Would you be able to demonstrate how to recreate a sticky button that moves/transforms when scrolled out of view such as the one on paperpiller's website?

    • @NikolaiBain
      @NikolaiBain  3 года назад

      You bet and thanks for the video recommendation! I've checked out their website and put the video idea on my backlog 🌟

  • @adriangavrila1792
    @adriangavrila1792 3 года назад +1

    THANKS!

  • @dziggify
    @dziggify 2 года назад +2

    Hey Nikolai, thanks for this, implemented it on client website and the tabs works perfectly.
    One question though, it seems the code is interfearing with webflow mobile navigation, it auto closes after a few seconds. I suspect it has something to do with the .menu-button class but not sure. Have you encounter similar problem or perhaps has tips to fix it? thank you.

    • @Pinchejoss
      @Pinchejoss Год назад

      Did u figure out how to solve this issue?

    • @dziggify
      @dziggify Год назад

      @@Pinchejoss Hey, I did but I didn't document it properly and not using it right now on any of my projects. Found a code that let us change when the script works, based on vertical distance from the top. Sorry I can't be more helpful.

  • @jdanielortega
    @jdanielortega Год назад

    Please Teach us to create this vertical tabs element

  • @rafairibarrem
    @rafairibarrem 3 года назад +4

    Why are we alive? That's the ultimate question

    • @NikolaiBain
      @NikolaiBain  3 года назад

      You have to ask it every one in a while 🧐🍷

    • @DerekSiu-gm9rl
      @DerekSiu-gm9rl Год назад

      @@NikolaiBain Did you find the custom code solution to this question? Very curious to know.

  • @cannonleo
    @cannonleo 6 месяцев назад +1

    this affects the navbar on mobile, does not allow it dropdown and closes the navbar , is there a fix for this

  • @surendarr2177
    @surendarr2177 Год назад

    Hi Nikolai thanks for tutorial but I'm facing a problem that my time bar animation is not reseting.. Is it because of same class applied to tab content ?
    or if I add custom code will it manage to find to reset automaticalluy ?
    please help me this brother

  • @connorfinlayson
    @connorfinlayson 3 года назад +2

    How they do dat?

  • @filetmignon9978
    @filetmignon9978 3 года назад +1

    Just a recommendation for future videos, look at the lens, not the screen cuz in videos it'll always look like you're talking to someone next to me

    • @NikolaiBain
      @NikolaiBain  3 года назад +1

      Haha yeah you're right, cheers for the feedback!

  • @iamjordantaylorpro
    @iamjordantaylorpro Год назад

    "How dey do dat?" 😂

  • @emcquesten
    @emcquesten 2 года назад

    Hey Nikolai, do you by chance know how to get the code to work on two instances of auto-rotating tabs on the same page?

  • @Roadrebelsoffroad
    @Roadrebelsoffroad 2 года назад

    How does that paragraph text hide and show in tab change?

  • @andreacardi7400
    @andreacardi7400 3 года назад +1

    I have followed steps by steps, unfortunately it is not working with this code snippet. Has it worked for someone here?

    • @NikolaiBain
      @NikolaiBain  3 года назад

      Hey Andrea! See a working version here: etro-website.webflow.io/
      Could you try paste the custom code in the section one more time and see how it goes? :)

    • @andreacardi7400
      @andreacardi7400 3 года назад +1

      @@NikolaiBain I found where the problem was. It was due to the plugin that you use to copy-paste the code in. Now it works, thanks.

  • @TheAhmedGhorab
    @TheAhmedGhorab Год назад

    I've tried the code but it didn't work
    So here is an updated one that works:
    var Webflow = Webflow || [];
    Webflow.push(function () {
    // Fix for Safari
    if (navigator.userAgent.includes("Safari")) {
    document.querySelectorAll(".tab-link").forEach((t)=>(t.focus=function(){const x=window.scrollX,y=window.scrollY;const f=()=>{setTimeout(()=>window.scrollTo(x,y),1);t.removeEventListener("focus",f)};t.addEventListener("focus",f);HTMLElement.prototype.focus.apply(this,arguments)}));
    }
    // Start Tabs
    var tabTimeout;
    clearTimeout(tabTimeout);
    tabLoop();
    // Connect your class names to elements
    function tabLoop() {
    tabTimeout = setTimeout(function() {
    var $next = $('.tabs-list').children('.w--current:first').next();
    if($next.length) {
    $next.click(); // user click resets timeout
    } else {
    $('.tab-link:first').click();
    }
    }, 5000); // 5 Second Rotation
    }
    // Reset Loops
    $('.tab-link').click(function() {
    clearTimeout(tabTimeout);
    tabLoop();
    });
    });

    • @chakradharisaurabh
      @chakradharisaurabh Год назад +1

      Thanks man
      Really was facing issue with safari.
      This code resolves the issue of section scrolling automatically to the tab.

    • @TheAhmedGhorab
      @TheAhmedGhorab 6 месяцев назад

      @@chakradharisaurabh anytime man. have fun