Modern CSS Features You Should Know About

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

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

  • @JeffPohlmeyer
    @JeffPohlmeyer 8 месяцев назад +47

    Channeling your inner Kevin Powell with the "hello my frontend friends", are we?

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

    17:38 the :has() selector is really awesome. For instance, I used it in a Sveltekit project theme switch, to prevent that flicker error (where the server brings dark them, and then the client flick to light).
    Because in Svelte, the body element cannot be accessed on the server. In other words, we cannot do dynamic class to the body on server.
    So I dynamically add theme to the main element. Then I used something like this body:has(.dark), where .light or .dark class is on the main element.

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

    « I need to zoom in to show you how beautiful it is ». Love css. Great video

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

    Oh man. I am writing a components library and this makes it amazing. I am taking a lot from the react version to svelte and I was worried that I didnt had all this available because of svelte scoping. This is amazing!

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

    I did like what you said about how you should not keep these things on your mind or be overwhelmed about, it will be just enough to know that there's something that solves some problem and you will use it when you need it...

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

    I really appreciated the video pacing. Browser support is slow but it moves 🎉

  • @SRG-Learn-Code
    @SRG-Learn-Code 8 месяцев назад +1

    4:20 Good bye SCSS! Nesting is so neat... Since now is "vanilla" css, could you use it in svelte and still compile it to be cross-browser compatible? Not having to setup scss is going to be great (the times I use it is just because nesting)

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

      You can also use PostCSS to take advantage of these features and remove it later.

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

    Thanks for the presentation, very exciting times for CSS developers! I wonder why subgrid took so long when it seems so simple. And wow, those color blending things are so crazy.... Browsers really are one of the most complex pieces of software out there today, I think. Big kudos to the developers for their hard work!

  • @SRG-Learn-Code
    @SRG-Learn-Code 8 месяцев назад

    2:50 scope is going to be great! As you said, most framework could just swap and do it vanilla and therefor you sites are going to be more resilient. Is like CSS people are seeing how awesome it is!

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

    scroll driven animations -- letss gooo ..

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

    It's incredibly funny to me that they managed to mess up the sticky headers in an article about CSS - the text is shown below AND above the header when you scroll :)

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

      That's probably my fault because I changed the CSS on the page to remove the header for more reading space. 😆

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

    "Hey there my friend and friends" LOL I had to double check who is talking :D

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

    Hi Friends! Your energy and "to the point" presentation style is great. I continue to enjoy every one of your videos.

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

    note to self. dont spend months making custom modal component because even css updates move faster than i do...but i am excited for all these

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

    this is insane! just how many time I have written js conditioning to get alot of this stuff ... and now its so simple ... gg!

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

    This is amazing I had no idea nesting came to all major browsers by dec 2023!!!🎉🎉

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

      be careful that safari has a shitty way to update and is tied to the OS version, nevertheless it's supported by all major browsers, it has a support of around 60% in the user land at the moment, most of them are iphones or osx that are not updated to the latest version. Always check caniuse to know the actual support share.

  • @SRG-Learn-Code
    @SRG-Learn-Code 8 месяцев назад

    10:30 Tahran from LTT made a video a while ago about how photoshop doesn't know how to properly mix colors. It seems css got it right!

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

    Ok all these changes have made me stop using scss to just regular css. I didn't know all these features came within the last year! I plan on launching an application by mid summer so some of these features may even have better support by then

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

      You can also use PostCSS and remove it later.

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

    ur introduction hits me 🥲

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

    Amazing work! Thanks for creating such a good content.

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

    Yeah, Tailwind is good like fast food, but native css is the health meal that you may not love, but is good for you and take you to another level.

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

    Great video thanks

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

    Thanks for sharing.

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

    I literally saw a video from Kevin just right before this one :D

  • @TSC-HOME
    @TSC-HOME 8 месяцев назад

    Cool video thanks

  • @AbdullahBashir-b3t
    @AbdullahBashir-b3t 8 месяцев назад

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

    Does this mean I have to learn math for CSS?

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

    FireFox... FF the new IE

    • @SRG-Learn-Code
      @SRG-Learn-Code 8 месяцев назад +1

      Firefox in android is great because it still allows extensions. I love firefox is still a thing. I hope they get their $hit together and become evergreen again. Might be that they don't push features anymore and just wait to see what they finally have to implement?

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

      Mozilla still hires Firefox engineers but their focus seems to be shifting away from Firefox into other money-making schemes.

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

      Firefox is not always up to date, but has solid implementations. Most of the problems I have today are with Safari!

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

    tailwind is stupid

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

    Using “boom” and “crap” in every second sentence does not make you look cool, just FYI