Это видео недоступно.
Сожалеем об этом.

Container Queries Give You Layout SUPERPOWERS

Поделиться
HTML-код
  • Опубликовано: 16 июл 2023
  • When I first learned about container queries over a year ago, I had a hard time wrapping my head around them. I think it's because of the context I heard about them in -- it was too technical of an explanation.
    Once I started playing around with them, though, it all made perfect sense. And the power within them became apparent.
    In this video, I'm going to give you an introduction to container queries that you can immediately wrap your head around. I'm also going to show you how we're going to be thinking about Frames (getframes.io) and Automatic.css (automaticcss.com) in a world where container queries exist.
    The term "game changer" is overused, but in this context, it's a perfect term. This does "change the game" for CSS-based layouts and is a much more appropriate context for controlling layout over something like media queries.
    Enjoy!
    ** MY TOOLS **
    🔥 AutomaticCSS (ACSS) - automaticcss.com
    🔥 Frames - getframes.io
    See all my recommended tools here: geary.co/tools/
    ** INNER CIRCLE **
    Step your design/dev game up, make more money, and get the full scoop on scaling your digital agency! When it comes to the Inner Circle, I don't hold back.
    ⭕ In-depth design & dev trainings
    ⭕ Business, sales, & marketing trainings
    ⭕ Agency resources & downloadables
    ⭕ Vibrant, quality community with zero toxicity
    ⭕ ...and much more!
    Learn more and join here: geary.co/inner...
    ** SOCIAL **
    👉 FB - / marketingkev
    👉 LinkedIn - / kevingeary
    ** CHAPTERS **

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

  • @jamesl.223
    @jamesl.223 Год назад +9

    very cool info Kevin, thanks again for another great post. If you are considering buying ANY of this guys products, ask yourself, how much was JUST THIS lesson worth to you?? Think of how many other lessons he posts for free, his products are VERY good (personally don't use frames but I can see why someone would) Buy his products (at least acss) you WILL become a better professional web designer for using it and realize that you're not just paying for the framework you're paying for this content also. /end rant

  • @chrisgreen5711
    @chrisgreen5711 Год назад +5

    Absolutely freaking awesome Kevin - brilliant tutorial as always. Can't wait for this to be available in all browsers :D

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

    Container queries are really awesome and as you'd said, it will change the game completely. We have to unlearn to think in device width and start over to think of what are the container sizes we want to change any kind of behavior. Your example shows all the major benefits and the in between sizes, like where the 600px kicked in shortly. Absolutely freaking awesome! Once it's up to 92~95% it will be super stable to use.

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

      Exactly! Some people still don't get it ... but maybe it'll click for them soon.

  • @ted-e-baer
    @ted-e-baer Год назад +1

    Another great video, Kevin. The man is keeping on top of CSS pipeline. Then sharing his findings after ironing things. In turn he is keeping us current too. Enjoyed this tutorial. Cheers, Kevin.

  • @VascoDanielBaiao
    @VascoDanielBaiao 9 месяцев назад

    Seeying you making an "awesome blog post" in three minutes at 12:00 is inspiring and relaxing. I think my mirror neurons got sharper just from watching the building on the fly 😄

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

    I think it's a great way to also quickly "visualize" what your design looks like in mobile. Even though we have media queries in page builders, it seems faster to update classes and instantly see what they will look like in mobile

    • @Gearyco
      @Gearyco  Год назад +4

      It's not about mobile-responsiveness, though. It's about what a component looks like when you drop it into a completely different context, like dropping a wide card into a 3-column grid. Changing the layout on a context-by-context basis isn't possible with media queries.

  • @taunado
    @taunado 9 месяцев назад

    Very well explained, thanks.

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

    Great tut as ever. I am definitely de-chumping!!😂

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

    Great video **sneak peek** at what's coming. I'll need to watch this again to wrap my head around things but looking forward to when I can use this in the near future. Always great content from this channel.

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

    I've missed your tutorials, glad you're back.

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

    Loved this Kevin 👍🏻

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

    Absolutely gold! I cannot wait to start using this and will probably start implementing sooner than I should :-)

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

      It's very tempting!

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

    That's an awesome tutorial @Gearyco. Thank you so much for your time and effort. 😍👍

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

    Great video Kevin!!! Looking forward to being able to use this!

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

    Powerful stuff.

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

    Thank you Kevin for this technology watch!

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

    This is amazing!! Thank you for sharing this. I hope soon there will be a frame for this :) I understand that we have to wait before it is implemented in browsers for 90% but in my head I go use it.

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

    Love it! Perfect explanation with perfect use case.

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

    Wow, @container is already in the 90%! Summer is coming!

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

    Thanks Kevin! The speed of this session was great. Can we get more 30 minutes sessions like this in future?

    • @Gearyco
      @Gearyco  Год назад +8

      The sessions are as long or as short as they need to be. I basically teach what needs to be taught and I don’t focus much on the length.

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

      I understand, but in general the pace of this session was much faster and that worked for me. I really appreciate all your videos and learned so much from them, but I seldom have an hour plus available during the day to join the live session.

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

      Its way to short;)

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

      ​@@koperkuba have a look there are videos that are almost 2 hours and in much more details on many subjects. :-)

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

    In the case of the example you gave here, (of a featured card) wouldn't a better workflow be to style the cards normally and then if the container is greater than 600px the "featured card" style appears. ?

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

      Yep, you can do it either way. I didn't have a specific context of a real website, so I was just doing it this way for demo purposes. But you want to look at how the card is used across the site and design it for the common use, then use container queries to manipulate it from there.

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

    As a brand new Bricks user and an "intermediate" CSS hacker, does it still make sense to use fluid design using calculated variables for things like space, gap, font size, etc. but primarily use container queries for layouts only? In your demo today, you were changing the spacing, padding, gap, etc. in the container queries similar to what "chumps" do with media queries. So with container queries will our "fluid design" with calculated variables complicate the design or do you think you will recommend we just put everything in the container query based on what you know at this point? Hope this makes some sense. 😀

    • @Gearyco
      @Gearyco  Год назад +3

      Container queries are not a replacement for fluid design principles or tokenization. They should be used exactly as I showed them here. I will be doing more videos on them in the future.

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

    Could you show the designed handover to developer using Frames?
    Its it a case of the dev clicking on sections, looking at the type of frame and inserting this in bricks builder? Or is there an export to bricks workflow?
    When creating a copy of a desktop version and choosing mobile in Figma, does Figma update the text between the two artboards?

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

    Another great video Kevin! Seems like adoption of this is already at 87+%, making it already pretty safe to use. I've not tested with fallback styling but not even sure if it's needed. Thanks

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

      I like to see things over 90% before production use.

  • @alexander-van-aken
    @alexander-van-aken Год назад

    Wonderful work! Happy me! So one question. Am I right that the @container statement, is a browser-standardized statement that knows to check the parent because the parent has an instruction of container-type? So this can be used within SCSS too where one can put media queries inside classes.

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

    just wow!

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

    I know it wasnt the main piece of this video but I didnt realize we can run calcs without having to add calc() in bricks. was this an ACSS feature that was added? Also thank you for clarifying container queries. I had been curious about these.

    • @Gearyco
      @Gearyco  Год назад +3

      Yes, it's part of the "variable expansion" feature. Super helpful.

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

      Yeh I didn’t know either! That’s an amazing and very handy feature! Great stuff! Thanks @Kevin

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

    What app you use to record the session? It auto zoom your cursor, thats nice! Name of the app?

  • @Louis-C-online
    @Louis-C-online Год назад

    simply amazing, thanks for this great tutorial, it makes me wonder why this hasn't been available sooner ! But I guess media queries will still have some utility for layout purposes, like you did in your example with the grid right?

  • @user-ik7rp8qz5g
    @user-ik7rp8qz5g 9 месяцев назад

    What are your thoughts on making general page layout with grid+containers?

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

      Not sure what you mean --- dont' I use grid and containers in every video?

    • @user-ik7rp8qz5g
      @user-ik7rp8qz5g 9 месяцев назад

      @@Gearyco This is the first your video that I watched, so yes, maybe this question is answered in other videos

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

    Hi Kevin - another excellent video. I had not idea about this new functionality! Looks great. By the way - what screen recorder tech are you using? I like the way it zooms in and out and pans around the screen...thanks!

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

    Awesome vid as always, Kevin. Thanks for sharing the magic. Two quick questions, is the container class already available in the latest production version of ACSS or is it a coming soon? And do we have any idea on when browser support will be in the 90's, like which ones are lagging? Thanks, as always 👍

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

      V2.6 - no telling how fast browser support will progress

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

    Stupid question 😅 how would you make a query loop out of this with the featured post at top?

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

      Should be the same process as always. Did you try and run into a problem?

  • @Luca-ui3rn
    @Luca-ui3rn 4 месяца назад

    Hi Kevin, does it make sense to use css container queries now, since over 90% of all browsers support this?

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

      Since it typically has critical layout implications i would suggest waiting until it hits 93-94%

    • @Luca-ui3rn
      @Luca-ui3rn 4 месяца назад

      @@Gearyco ok - thanks for your lightning-fast reply, as always :)

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

    So easy to understand! Thank you Kevin! 😀 And btw, what are your thoughts on AI generated websites? Are we going to be replaced?

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

      Only web designers who use beginner builders, design kits, and lack a professional process will be replaced

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

    Great vid and 100% see what it would be used for. Being brutally honest though with ACSS/Frames and with grids to make things easy and fast, purely from a speed PoV in Bricks surely just slapping some screen sized based grids / width full on a block in Bricks takes less than 30seconds and you're done to use them all over your site again and again.
    Unless you want the content contained to be radically different, but even with container classes you'd need to jump into the CSS and change them up, create new classes etc.
    Like I said, don't get me wrong, I see what they're doing and why. I just don't yet see why they're 'game-changing' compared to regular media queries in a practical use sense on the average website.

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

      I wonder if it has to do with the quality of resposiveness. With all the device sizes out now, media queries tend to not always work well in all cases.

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

      They're game changing because what I showed (behavior change when using an element inside a grid vs inside a separate area) is literally impossible with media queries.

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

      @@Gearyco sure, bad phrasing, I can see they change the aspect entirely. I’m just not seeing personally the why yet, but it may well come! Other devs I’ve spoken to also felt the same.
      I guess my point is more seeing the real world benefits / speed benefits of doing this vs using quick Acss variables with normal queries in systems like Bricks where saving and reusing components is also already so easy.
      Unless your whole site is made of cards or if you have tonnes of different cards or grids then maybe, but the extra div and styling work needed on top - apples and oranges? 🎉😂

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

    Awesome! One thing I always see you do is converting --space-l for example to var(--space-l) automatically. How do you do that?

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

      ACSS

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

      @@Gearyco I mean the keyboard shortcut you do.

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

      @@Multilive1000 In inputs, you just hit enter. In CSS box, you just add the ";" tag. It's automatic.

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

    IT seems to be you are doing the exact same adjustments but only one time... Its very similar to media queries. AT 12:58 Why didn't you use the grid 2-1 class in ACSS ?

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

      I used grid 1-2 because I wanted the left side to be smaller than the right. Is that what you're asking?

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

      @@Gearyco no you used grid builder in bricks. Couldn't you have used acss class grid?

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

      @@knuterockknee No, because I was using BEM classes. It's bad practice to mix BEM classes and utility classes.

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

    This is off-topic (obviously since the video isn't even out yet), but 1 thing I always wondered:
    Why did you choose Wordpress as your CMS? To me it seems like most professional developers don't use Wordpress if they actually built sites for clients. Talented and professional developers built software FOR wordpress, because they know they have a large target audience and will generate a lot of money, but it feels like of all webdesigners that use Wordpress most are amateurs / wannabe pros. Why not something like TYPO3 if the requirement was open source? It's not such a mess, way more secure and I'm sure ACSS and Frames would be no problem with it.
    Is it because you started with WP before you had so much knowledge? Or are there other reasons?
    I mainly ask this because I myself started with WP when I had no clue about anything, but now that I learned a lot I always catch myself thinking about switching to a more "professional" CMS. Thanks in advance.

    • @Gearyco
      @Gearyco  Год назад +7

      Wp powers like 40% of the internet. It’s what everyone knows including most clients.

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

      @@Gearyco Hm okay but is this a valid argument? You are the one who says the client shouldn't touch the website (which I agree with). Also most people probably eat McDonalds when they eat burgers, doesn't mean that they have the best burgers / most professional cooks.

    • @Gearyco
      @Gearyco  Год назад +6

      @@maksfischer7477 I think WP as a CMS is fantastic especially given the vibrant ecosystem around it.

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

      @@Gearyco Okay thank you

    • @rubengarciajr
      @rubengarciajr Год назад +3

      do you have any examples of a "professional" website made with TYPE03? Just wondering

  • @alexander-van-aken
    @alexander-van-aken Год назад

    Bedankt

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

    New screen recording app? Looks extra smooth here.

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

      Yep. Already logged 3 complaints from viewers, haha.

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

      @@Gearyco I actually love it. Is it Screen Studio?

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

    Very cool. 👍🏻 You are making web design sexy again 😎

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

    Who does your video editing? Love the subtle zooms and face video transitions

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

    Honestly.. still don't get it. Looks like your mixing sass / root with a contain class built into acss, WHILE writing a bunch of custom CSS in multiple places for multiple divs?
    Hell, to me, simply adding media queries and or media queries + classes still seem far easier to understand and make happen.

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

      No scss/sass in this video. Custom CSS is required because Bricks has no container query feature. And none of what I showed can be accomplished with media queries.

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

      It's pretty confusing if you're not familiar with automatics css and bricks, especially at the speed he's moving. Watching someone like Kevin Powell with just a html and css file might make it easier to wrap your head around the concept. You'd probably want to write the css in a separate file for an actual project, but writing it inside Bricks allows us to see what's happening without jumping out of the builder too much in the video.

    • @BGdev305
      @BGdev305 11 месяцев назад

      @@Gearyco Yea you're right.. I finally had time to play with this and yes I can 'see' it now. Hell, it gets even better with TWO containers (@container1 and @container2) side by side, it's some dope stuff that can be done.

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

    Amazing video as always, but I am not a fan of this zoom/pan editing, I am getting motion sickness ;)

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

      So many people are a fan. And so many are not. Just like when I wasn't zooming before haha.

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

    Best explenation of use-cases