Create an Accessible Content Switch ... From Scratch ... In a Page Builder ... With NO Javascript!

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

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

  • @dahunsi
    @dahunsi 8 месяцев назад +3

    Very very enlightening tutorial. Another homerun. Can't wait for Part 2.

  • @eucalyptech
    @eucalyptech 8 месяцев назад +2

    Very impressive, well done Kevin 👍

  • @tudorcelstan
    @tudorcelstan 8 месяцев назад +2

    This right here and the alternating numbered process cards have been by far the best advanced tutorials I've ever seen from you. Really stepping up your game!!!

  • @davidwalls2304
    @davidwalls2304 8 месяцев назад +1

    Great tutorial and enjoy witnessing the logic behind the build to make things clear.

  • @simonkerridge
    @simonkerridge 8 месяцев назад +1

    Brilliant! So much helpful training in this video that can be used for many different situations. Know I will need to rewatch this several times to ensure I glean all I can from it. Thank you again, Kevin!

  • @popopp2297
    @popopp2297 8 месяцев назад +1

    Hi Kevin, Jeremy Waters here from the State 48 (aka - Chandler AZ). Amazing tutorial my brother, I hope there is many more to come! I feel like I know you from somewhere, maybe Federal Way WA or Seattle. I was an Elementor user for roughly 2 years, thanks to you and your videos I switched to Bricks in correlation with Automatic CSS roughly three months ago. Needless to say I will never use Elementor again, that is until I have to. So excited for the future! I used a line in a meeting that I learned from you that I'm calling the three technique. This "3 technique" helped me lock- down 2 new customers each paying me $1,000 per month on a 12 month contract. I'm literally turning Bricks built sites into a micro CRM's as we speak then selling it as a custom SAAS product/ service to clients. Your videos have added so much value to my service which ultimately pays my bills and keeps my family going. From the bottom of my heart thank you so much for everything you do!

    • @Gearyco
      @Gearyco  8 месяцев назад +1

      💪🏻💪🏻💪🏻

  • @Leavventuredifrucci
    @Leavventuredifrucci 5 месяцев назад +1

    Great video! I found really valuable the switch element accessibility and styling part. I hope there are more videos like this to come! 🔥

  • @laurelbraun9428
    @laurelbraun9428 8 месяцев назад

    Amazing! I was blown away to find out that this kind of functionality can be created with pure CSS.

  • @ted-e-baer
    @ted-e-baer 8 месяцев назад +1

    Top drawer, Kevin. Thanks for this tutorial. I liked this one very much. Looking forward to part two. Cheers, Kevin!

  •  8 месяцев назад +5

    As always... Love it! #GoldenNugget Insight at 36:52 🤩 Never noticed this before!

  • @mikkey0001
    @mikkey0001 8 месяцев назад +1

    Thanks for this, going to use it to build a Woo subscriptions product selection process.

  • @vaughanprint
    @vaughanprint 7 месяцев назад

    Just get back to a second viewing to do the follow along. Well worth the effort. So many new concepts in using CSS to do things.

  • @chrisgreen5711
    @chrisgreen5711 8 месяцев назад +1

    Awesome video Kevin. I can't actually believe how much I've learned in one tutorial. Pretty sure I'll have to watch it again to take everything in 😄. Really appreciate you doing these and the effort it takes! 👍

  • @bzw4892
    @bzw4892 7 месяцев назад

    You are a wizard!! So much fun learning with you. Still have to consolidate the stuff from 101 through practice, but maybe someday I’ll need this too :)

  • @digitalgorithms
    @digitalgorithms 8 месяцев назад +1

    Great guide! Thanks for sharing your knowledge and encouraging hands-on learning! 📝

  • @itspraveensharma
    @itspraveensharma 8 месяцев назад +1

    Kevin ...you are the best....

    • @Gearyco
      @Gearyco  8 месяцев назад +2

      🤗

    • @itspraveensharma
      @itspraveensharma 8 месяцев назад +1

      @@Gearyco Kevin if possible, please make a tutorial on Bento grid ...

  • @derekshort
    @derekshort 8 месяцев назад +1

    Great video! Thanks!

  • @WiredWP
    @WiredWP 7 месяцев назад

    I listen to this when I work out.

  • @superoverdrive8628
    @superoverdrive8628 8 месяцев назад +2

    I vote for more videos like this one 🙋‍♂️
    And btw.. that attribute bug not rendering in the builder is so annoying.. Bricks.. come on.. it was first reported back in 2022..

    • @Gearyco
      @Gearyco  8 месяцев назад +2

      I know! Can't believe it's not fixed yet.

  • @ThierryC-te3rx
    @ThierryC-te3rx 8 месяцев назад +1

    Hey, I made one with the Tabs element, I will be glad to see Your approach !

    • @ThierryC-te3rx
      @ThierryC-te3rx 8 месяцев назад +1

      Yeah, Very far from my frankenstein Tabs Nestable element content switcher 😂

  • @BGdev305
    @BGdev305 8 месяцев назад +3

    Nice.. for pt2, how about some css opacity transform to ease the hard jump in transition between the two options?

    • @Gearyco
      @Gearyco  8 месяцев назад

      Which hard jump?

    • @derekshort
      @derekshort 8 месяцев назад

      @@GearycoHe might be referring to the price changes on the cards.

  • @kareem2928
    @kareem2928 8 месяцев назад +1

    Great stuff, thank you.

  • @ZamirGomeh
    @ZamirGomeh 5 дней назад

    Hi @Kevin Geary. What could be the reason that Lable did not trigered the functionality of the radio button?

  • @lashachan
    @lashachan 8 месяцев назад +1

    Amazing video as always. Hey Kevin, can you do a video about your recommendation for good WP hosting? For agencies and personal websites.

    • @Gearyco
      @Gearyco  8 месяцев назад +1

      I recommend gridpane

  • @LupusDesign
    @LupusDesign 8 месяцев назад +1

    Love it!

  • @maythe4thBwithU
    @maythe4thBwithU 8 месяцев назад +1

    36:52 Golden Nugget Moment

  • @winwinis3483
    @winwinis3483 8 месяцев назад +1

    Amazing as always - Thanks. #Q if there was a third option of say quarterly, could that easily be added?

    • @Gearyco
      @Gearyco  8 месяцев назад +1

      Yep!

  • @fabiamc
    @fabiamc 5 месяцев назад

    Is part 2 coming anytime soon? thanks

  • @mohdom6
    @mohdom6 8 месяцев назад +1

    Just watched the whole thing, I'm putting this on my website but is this easier in Javascript?
    sometimes I do wonder if I should learn it.

    • @Gearyco
      @Gearyco  8 месяцев назад +1

      Not easier, no.

  • @wpeasy
    @wpeasy 8 месяцев назад

    Wow, love it. Super clear and great concept. made possible by accepting the prevalence of :has() :)
    One question:
    Instead of using ID #monthly-option, would it be better to add a class .monthly-option and target that with CSS. I'm thinking you may have more than one switchable price section on a page, where ID's may not make sense?

    • @Gearyco
      @Gearyco  8 месяцев назад

      That would probably be rare. And I think if you use a class one switch will affect other switches. If you need multiple switches use unique ids

    • @wpeasy
      @wpeasy 8 месяцев назад

      @@Gearyco Hmm.. The class would only be an identifier with no styles attached. :has() looks down the DOM, so it shouldn't affect other switches.
      Anyway, just a thought. I agree that for most services there would only be one pricing set on a page. Although, I have seen pages with multiple products on the same page.
      For practice, I'm just working through building this out without following your video. Love the concept and overall simplicity.
      Thanks for your amazing videos.

    • @Gearyco
      @Gearyco  8 месяцев назад

      If two switches have .monthly-option and .grid--yearly is hidden based on that logic, wouldn't that affect both sections at the same time?@@wpeasy

    • @wpeasy
      @wpeasy 8 месяцев назад

      @@Gearyco No, I just tried it. Using the same logic as your demo and same DOM structure.
      %root%:has(.period-switch--monthly:checked) .pricing-container--yearly {
      --display: none;
      }
      %root%:has(.period-switch--yearly:checked) .pricing-container--monthly {
      --display: none;
      }
      However, what I did not take into account is that yuo have to change the names of the Radio inputs on each set. Otherwise they all group together :)

    • @Gearyco
      @Gearyco  8 месяцев назад +1

      @@wpeasy yeah, that too. So either way you’ll have to customize each switch I suppose.

  • @Zim_88
    @Zim_88 8 месяцев назад

    Hi Kevin
    Sorry if the question is not entirely relevant to the topic of the video. But I want to ask, why in the web I don't see any use unit points "pt"? I've heard recommendations from good designers for example, in layout and spacing use points, for example, in Figma. But it's in the design. What do you think about points "pt" in web? Why this unit not used? or I'm wrong

    • @Gearyco
      @Gearyco  8 месяцев назад +1

      Because that’s a unit from print design that doesn’t translate over to the web in any relevant way.

    • @Zim_88
      @Zim_88 8 месяцев назад +1

      @@GearycoOk, thanks.
      I was misled by video about design interface Apple Vision Pro, where are the designers from Apple show how they created the interface. And everything in (pt). So I'm a little ​confused and decided to ask.
      I can't write a link to the video because RUclips can delete the comment. but if you type "Design for spatial user interfaces" you will find.

    • @derekshort
      @derekshort 8 месяцев назад

      @@GearycoThat’s a very good... “pt” 😅

  • @derekshort
    @derekshort 8 месяцев назад

    I learned that IDs should be almost camelcase to differentiate them from classes. Example: #optionMonthly
    .option-monthly
    Is this wrong? 🤔

    • @Gearyco
      @Gearyco  8 месяцев назад

      Yeah nobody uses camel case in CSS

    • @derekshort
      @derekshort 8 месяцев назад

      @@Gearyco Oh... I come from a time period of using Notepad++ and then Visual Studio Code. I used camelcase so that I did not search and replace the wrong term. I still use it. I instantly know what it is when I see it. Lol

  • @nasmith67
    @nasmith67 2 месяца назад

    Just checked and you can't do this ( fieldset ) in Webflow with JS or custom embed.

    • @Gearyco
      @Gearyco  2 месяца назад

      That’s surprising

  • @derekshort
    @derekshort 8 месяцев назад

    1:05:48 Underscore!! Lol

  • @EstiloDevida-o3f
    @EstiloDevida-o3f 8 месяцев назад +1

    While the video was commendable, it's challenging to respect individuals who engage in deceptive practices, publicly disparage the very customers who generously compensate them for their services.

    • @Gearyco
      @Gearyco  8 месяцев назад +2

      What on Earth are you talking about, Anon?

    • @malikqatagan8977
      @malikqatagan8977 8 месяцев назад +2

      ​@@Gearyco😂

    • @S_Tito
      @S_Tito 8 месяцев назад +1

      Kevin 😂😂😂

    • @derekshort
      @derekshort 8 месяцев назад +1

      @@GearycoIt’s probably an A.I. bot.

    • @stripedgoat
      @stripedgoat 8 месяцев назад +1

      Are you drunk?

  • @carlo3368
    @carlo3368 8 месяцев назад +1

    Great stuff as always... how safe is it actually to use :has? coverage is about 91% ... if people use a browser later than December 2023 no issues but we all know that many do not update browsers

    • @Gearyco
      @Gearyco  8 месяцев назад +1

      In this case it’s safe they’ll just see both grids at same time

    • @seekknowledge1928
      @seekknowledge1928 8 месяцев назад

      @@Gearyco 🤣🤣