Supercharged Sticky Scroll Sections with GSAP ScrollTrigger

Поделиться
HTML-код
  • Опубликовано: 5 мар 2024
  • Level up your sticky card stack sections by connecting them to Webflow CMS and animating on scroll with GSAP ScrollTrigger! We'll use the powerful Greensock Animation Platform to breathe life into this classic web design.
    👯‍♀️ Clone it: webflow.grsm.io/cloneable-is-...
    ✂️ FREE Code Snippet Library: code-snippets-sign-up.webflow...
    🧠 Javascript + Webflow Course: / webbae
    🕸️ + 🌊 Advanced Webflow Course (201): www.webbae.net/product/webflo...
    🙋‍♀️ Join the Discord: / discord
    🐥 Follow Me! / webisbae
    🎢 Get 10% off GSAP: WEBBAE10
    ♣️ Creative Coding Club (My favorite GSAP lessons): www.creativecodingclub.com/bu...
    Notes from Bae:
    I explored using GSAP pin with this, but found it wasn't as smooth on mobile. There were some interesting issues in the GSAP forum around doing this with 100vh vs. 100dvh. Normally for mobile fullscreen layouts I would choose dvh but ScrollTrigger recalculates when the viewport changes, which causes a jump in the animation when scroll direction is reversed. Since pin had a blip of jank anyways on mobile I decide to ditch it for the sticky top: 0 approach :).
  • ХоббиХобби

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

  • @roving-camera_72
    @roving-camera_72 4 дня назад +1

    It's amazing that you were able to pack so much into a 5 minute tutorial.

    • @webbae
      @webbae  День назад

      Thank you! I try to keep it interesting but also digestible. Focus on the main thing you know?

  • @DanniAllyssa
    @DanniAllyssa 3 месяца назад +2

    I have been trying to do this for DAYS!!!! THANK YOU!

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

      woohoo! glad it helped.

  • @user-ff1pn8qz7s
    @user-ff1pn8qz7s 15 часов назад

    can i use it with sticky elements, which bigger than 100vh, how to add usable scrolling?
    ty for video and answer! really helpfull!

  • @scr1ptex446
    @scr1ptex446 4 месяца назад +1

    Awesome! Thank you!

    • @webbae
      @webbae  4 месяца назад

      Thanks for watching!

  • @jclewis33
    @jclewis33 4 месяца назад +1

    Great video. Thanks for sharing.

    • @webbae
      @webbae  4 месяца назад

      Thanks for checking it out Casey!

  • @Milos86.
    @Milos86. 4 месяца назад +1

    Cool stuff 👌

    • @webbae
      @webbae  4 месяца назад

      Glad you liked it Milos

  • @heatherliu6856
    @heatherliu6856 4 месяца назад +2

    Slick shapes

  • @plantseeds_
    @plantseeds_ 4 месяца назад +1

    Damn that was a show-off.
    Great stuff Bae

    • @webbae
      @webbae  4 месяца назад +3

      Good Q
      Skypack ships a version of GSAP that we can use with import statements inside a module. I’m using this way so I can use import statements rather than additional script tags (keeps the code nice and tidy). It’s kind of like using npm but I don’t need to use a bundled, which tends to confuse folks who are new to JS and dev stuff.
      Was exploring some new workflows for YT since CodeSandbox changed their free tier and I don’t plan on using them anymore.

    • @plantseeds_
      @plantseeds_ 4 месяца назад +2

      @@webbae interesting!! Thank you.
      What are you using now instead of CSB? Would love to see a run-down of your dev setup.

    • @bamoj
      @bamoj 4 месяца назад +2

      @@webbae
      Ahh, I see now why my sandbox is not working - sucks!
      Great Tutorial btw Keagan, wayy much better than how I did mine. Im stealing this, thank you!

    • @webbae
      @webbae  4 месяца назад +4

      VS Code + Live Server extension to replace CSB.
      I go over it (and also how I integrate with github + jsdelivr) in this video: ruclips.net/video/1Wpb9TqX_CQ/видео.htmlsi=s47gMe8EPtq2dDEl

    • @bamoj
      @bamoj 4 месяца назад

      @@webbae Sweet! How can I miss this, thanks man!