Animate Webflow Color Modes

แชร์
ฝัง
  • เผยแพร่เมื่อ 30 ม.ค. 2025

ความคิดเห็น • 31

  • @oviSavescu
    @oviSavescu 11 วันที่ผ่านมา +3

    00:06 - Variables & Classes Setup
    01:54 - Custom Code
    03:13 - Example 1: Animate Section on Scroll
    04:49 - Example 2: Animate Body on Scroll
    05:44 - Example 3: Animate Navbar on Scroll
    07:05 - How the ThemeCollector Code Works 🔥
    Thank you Mr. Ricks! 🙌

  • @FredericHoh
    @FredericHoh 13 วันที่ผ่านมา +7

    Great! Didn‘t expect that you were that fast with the updated solution for this! Many thanks!

    • @timothyricks
      @timothyricks  12 วันที่ผ่านมา +2

      I’m so glad this helps!

  • @spierre6009
    @spierre6009 12 วันที่ผ่านมา +1

    Thanks a lot for the quick update !

  • @savicd00
    @savicd00 12 วันที่ผ่านมา +2

    Hi Tim, will there be any tutorial for all the other updates regarding spacing in Lumos? I'm a bit confused because the old spacing system with u-block-gap, text-margin-off, margin-trim-off, child-contain has been removed. How do we now create spacing between two buttons and add a max width to a heading while being able to control them via the parent text alignment? What's the deal with flow-root and the new utility classes for alignment?
    By the way, thanks for everything you do; you're an absolute legend!

    • @timothyricks
      @timothyricks  12 วันที่ผ่านมา +2

      Hi, yes I’m working on more tutorials and updated documentation! The new alignment classes and variables allow us to control the child flex styles from the parent’s alignment mode. This replaces u-child-contain, u-block-gap, and all of the workarounds we had to use before. The display: flow-root helps ensure the line height trim on text elements doesn’t overflow and affect the spacing outside of the text box.

  • @JesseShauffer
    @JesseShauffer 11 วันที่ผ่านมา

    Hey Tim…do you have another tutorial for theme modes using this with local storage so the settings persist from page to page and also can be changed by the users OS settings?

  • @anenglishmanyoutube
    @anenglishmanyoutube 11 วันที่ผ่านมา +1

    Amazing. Thanks!

  • @MikeBurnsUIUX
    @MikeBurnsUIUX 11 วันที่ผ่านมา

    Love this Tim. Thank you :)

    • @timothyricks
      @timothyricks  10 วันที่ผ่านมา

      So glad this helps, Mike!

  • @TheThOmAsMaRtInSeN
    @TheThOmAsMaRtInSeN 10 วันที่ผ่านมา

    Awesome! I was actually toying with the idea of making a dynamic homepage were the site randomly chooses one of 4 color themes on load using custom code. These new variable modes seems ideal to make this happen, but I am not a coder however. Do you know of a good approach for how to achieve this? Could be random or some kind of cycle, either works🙂

  • @mdsaifulislamshanto4444
    @mdsaifulislamshanto4444 13 วันที่ผ่านมา +2

    That's great. Thanks for your content

  • @krawuz954
    @krawuz954 11 วันที่ผ่านมา

    Ty for the great vid!
    But can i make a Dark/light mode with this for my whole page ? or is there a better solution ?

  • @okkaykyle
    @okkaykyle 12 วันที่ผ่านมา +1

    Well done sir! Thank you!🤩

    • @timothyricks
      @timothyricks  12 วันที่ผ่านมา

      Thank you, Kyle!

  • @the-8-bit-marketer
    @the-8-bit-marketer 18 ชั่วโมงที่ผ่านมา

    awesome video and exactly what I need, will this work if a call the default variable collection "Theme"? I have laid out my variable collections slightly different and the default is holding all of my theme colours and dark mode

    • @timothyricks
      @timothyricks  17 ชั่วโมงที่ผ่านมา +1

      Thank you! The theme collection can't be the default collection sadly. Webflow doesn't include the collection name of the default collection in the variable names.

    • @the-8-bit-marketer
      @the-8-bit-marketer 17 ชั่วโมงที่ผ่านมา

      @@timothyricks this is what I thought, I'll just have to refactor the design system then. All good! Thanks again Timothy, you are a Webflow inspiration!

    • @the-8-bit-marketer
      @the-8-bit-marketer 14 ชั่วโมงที่ผ่านมา

      I have this working on everything but the nav for some reason? I have checked and everything seems to be in order - do I need to do something to the nav?

    • @timothyricks
      @timothyricks  13 ชั่วโมงที่ผ่านมา

      @ We’d need to make sure the nav doesn’t have a theme applied that would be overriding the body’s theme.

    • @the-8-bit-marketer
      @the-8-bit-marketer 12 ชั่วโมงที่ผ่านมา

      @@timothyricks Yeh no theme or variable set on any nav elements and the variables are linked back to the theme as they should be. Feels like a webflow bug or some really really tiny mistake that I cant see. WIll investigate

  • @oviSavescu
    @oviSavescu 11 วันที่ผ่านมา

    Hello Mr. Ricks! I have a question, on how you built the Component Variants to allow for both Theme and Brand props. I know the Brand CSS vars need to be set on the same element that the Theme vars are set on (*or one of its parents*), since the Theme Modes use the last value of the Brand vars, and if the Brand varss aren't already set those values would be missing. So I'm deducing that you've created the Color Variants on the root element, and the Theme Variants on it's immediate child, that covers its parent completely (so any background color would still work). Or, did you add an extra wrapper to the component structure, specifically for the Brand Variants? Sadly you don't show the structure inside of the section components in the video. Thanks for the amazing work! ❤

    • @timothyricks
      @timothyricks  10 วันที่ผ่านมา +1

      Hi, thank you! I applied the theme mode to the section component and then wrapped the section component in an extra parent component that has the brand mode. There’s a cloneable in the video description that shows the setup. 🙂

    • @oviSavescu
      @oviSavescu 10 วันที่ผ่านมา

      @@timothyricks Oops 😊 I didn't think to look in the Components panel - that's why I missed the example components that weren't used on the page. Thanks for taking the time to respond!

  • @Hamdouche.M
    @Hamdouche.M 11 วันที่ผ่านมา

    Hi Timothy, why does an image with a transparent background used with g-visual appear to have a faded background color in dark mode?

    • @timothyricks
      @timothyricks  11 วันที่ผ่านมา +2

      Hi, the Global / Visual component isn’t meant to be used with transparent images. It has a background color behind the image so the section doesn’t look empty when the image or video is loading in.

  • @jelenajovanovic1472
    @jelenajovanovic1472 12 วันที่ผ่านมา +1

    Great! 😊

  • @GreenSockLearning
    @GreenSockLearning 2 วันที่ผ่านมา

    Sweeeet!