A new way to do CSS transforms!

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

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

  • @HadronCollisionYT
    @HadronCollisionYT 2 года назад +92

    This is the best Front-end dev channel I have found.

    • @KevinPowell
      @KevinPowell  2 года назад +11

      Thanks so much, really glad that you enjoy my content!

    • @luckylukeskywalker
      @luckylukeskywalker 2 года назад +2

      True, whenever something in css changes, he uploads, i see it, i'm up to date.

    • @HadronCollisionYT
      @HadronCollisionYT 2 года назад

      also many courses don't tell the best practices or does not explain many things correctly. His channel has everything explained in a simpler way.

    • @NathanHedglin
      @NathanHedglin 2 года назад +1

      @@luckylukeskywalker exactly. I've passed interviews thanks to @Kevin Powell

    • @abuzargafari8366
      @abuzargafari8366 2 года назад +1

      Me too bro....

  • @_wise_one
    @_wise_one 2 года назад +21

    CSS need for good updates like these, thanks for covering

  • @charlesc2095
    @charlesc2095 2 года назад +3

    Thank you so much for what you do. Ive been a front end dev for almost 17 years and Im guilty of relying in my legacy knowledge of css a lot of times. These little updates that you do continously blow my mind and make my work not just easier but a lot more fun.

  • @NOALNOM
    @NOALNOM 2 года назад +1

    2:06 The 3d rotate property is mind blowing! Thanks 4 sharing Kevin!

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

    Hey Kevin, Kudos from Germany. My colleague, a Java Backend Dev ask me about some css techniques and I've recommended your channel. He now is binge watching you 😂 He loves your channel, videos and your kindness same as i do. We'll donate :)

  • @FamilyGuyVids11
    @FamilyGuyVids11 2 года назад +1

    I was wondering if there was a better way only yesterday. Great news. Thanks for the content - its appreciated

  • @AdamGaffney96
    @AdamGaffney96 2 года назад +7

    Genuinely huge, so glad this is something that's happening! So sick of having to repeat stacked transforms everywhere just because one bit is changing.

    • @timgreller
      @timgreller 2 года назад +3

      You can just use custom properties for your transforms. No need to repeat anything.

  • @truthteachers
    @truthteachers 2 года назад +27

    Hi Kevin, be careful. The hover effect works differently when using transform and using the non-transform method.

  • @pavanivaranasi4829
    @pavanivaranasi4829 2 года назад

    OMG this is my ahaa moment right now..I was trying rotate just yesterday and THANK YOU!!!!!!!! Your videos are best in css world

  • @LePhenixGD
    @LePhenixGD 2 года назад +3

    What's amazing about these properties is that the *order* of the stack context doesn't matter
    If you do an independent scale and then an indepent translate, no matter the order the result will be the same
    Unlike the transform ones, if you do a scale then a translate the result will be different

  • @MusicIsLifeFM
    @MusicIsLifeFM 2 года назад

    u're the man! thx for those updates and great css videos

  • @martinzen
    @martinzen 2 года назад +1

    Immaculate timing. You just solved the exact problem I was having with a logo animation.

  • @unmarked_kyuubi274
    @unmarked_kyuubi274 2 года назад +1

    Really the best CSS channel out there.
    Thanks Kevin!

  • @markzait2750
    @markzait2750 2 года назад +2

    Thank you Kevin! Great video!

  • @Red-X7
    @Red-X7 2 года назад

    This is so cool! I had noticed before but I just wasn't sure if it would be safe to use, because browser compatibility and that. Thanks Kevin! Very helpful as always.

    • @KevinPowell
      @KevinPowell  2 года назад +1

      Browser support is surprisingly good! Old phones are the biggest issue, but it goes back as far as Safari 14.5, so it's not terrible in that regard.

  • @sergnio
    @sergnio 2 года назад

    I was actually "wow"ing while watching this video. Absolutely amazing content like always Mr Kevin!!!

  • @vietvohoang459
    @vietvohoang459 2 года назад

    This is exciting to know, thanks Kevin!!

  • @darshrathod8729
    @darshrathod8729 2 года назад

    So far the only tutorial I've seen that takes it slow and doesn't require prior experience to soft design.

  • @mgusa9372
    @mgusa9372 2 года назад

    Rock on, K Powell. Tks!!!!

  • @eip408
    @eip408 2 года назад

    Awesome! very informative Kev🔥

  • @one_bored_dude1798
    @one_bored_dude1798 2 года назад +1

    That's awesome, I hope I'll be allowed to switch my current project to the new way of transforming. I am currently doing a lot of 3D Modelling with CSS+HTML only for a project so this might be a lot better to read and work with :D

  • @m4lvd4f4c7
    @m4lvd4f4c7 2 года назад

    ITS WORKING! nice job dude

  • @jwmoreland
    @jwmoreland 2 года назад +6

    Do you still have to use the shared "transform-origin" or can you say have a "scale-origin", "rotate-origin", etc.?

  • @giorgiobellisario
    @giorgiobellisario 2 года назад

    Fantastic!!! This TRANSFORMED in better the way to write CSS! 😉

  • @nro337
    @nro337 2 года назад

    Thank you! This is great!

  • @ifeanyiudeh9998
    @ifeanyiudeh9998 2 года назад

    Thanks for this. Really good to know

  • @Lazy4444
    @Lazy4444 2 года назад

    what a time to be alive!

  • @tomashubelbauer
    @tomashubelbauer 2 года назад +5

    Wait so how does the order work? Document order - applied in the order they appear in the source code? Constant order - applied in the same order given by the spec regardless of document order?

    • @KevinPowell
      @KevinPowell  2 года назад +3

      Yup, it's regardless oof document order if you use these.

  • @webdev___bappa4289
    @webdev___bappa4289 2 года назад +1

    Thank you sir.

  • @Gallowtown
    @Gallowtown 2 года назад +2

    a really useful update that could be used daily.

  • @ankurpathak108
    @ankurpathak108 2 года назад +1

    Hey Kevin, just wanna ask , how can I get this type of update related news ?

  • @triplecidealistcisco4722
    @triplecidealistcisco4722 2 года назад

    Words can't explain

  • @otis2646
    @otis2646 2 года назад

    Thank you ❤️

  • @artemkatr9483
    @artemkatr9483 2 года назад +1

    Cool!

  • @keylanoslokj1806
    @keylanoslokj1806 2 года назад +2

    Thanks for the valuable information. What happens if you work on old code in your company's products? Will the new rule create imbalances in the application?

    • @KevinPowell
      @KevinPowell  2 года назад +3

      In this case, luckily no. It just depends on the cascade like anything else, so if you had a transform in one place, and one of these later on, it'll only over-write the one that you changed.

    • @keylanoslokj1806
      @keylanoslokj1806 2 года назад +1

      @@KevinPowell great to know. Thanks

  • @ReddishReddish
    @ReddishReddish 2 года назад

    Great information!

  • @savinoowiredu8969
    @savinoowiredu8969 2 года назад

    This is super awwwwwesome

  • @nikulyt3166
    @nikulyt3166 2 года назад

    Watched on Kyle channel but watched anyway... Cause learned so much from this channel.

  • @matthewstaton6810
    @matthewstaton6810 2 года назад

    The order of translate and rotate got me... I'm pretty sure it got me up until this moment of watching this video. lol

  • @skillzorskillsson8228
    @skillzorskillsson8228 6 месяцев назад

    What if we want to use the rotate property to rotate 20deg on X axis and 10deg on Y Axis? i tried rotate:x 20deg, y 10deg; it does not work. I also tried the same but without comma, it also does not work...

  • @uhateulame9092
    @uhateulame9092 2 года назад +1

    CSS MASTER !

  • @Allformyequine
    @Allformyequine 2 года назад

    So great!

  • @travisv
    @travisv 2 года назад +1

    Do you still need transform-origin, or do the individual properties have their own origin property?

  • @rmasoni
    @rmasoni 2 года назад

    Nice!

  • @dave6012
    @dave6012 2 года назад

    Does transform-origin still work the same for these properties? I almost never use scale and rotate without setting the origin.

  • @gametroll6311
    @gametroll6311 2 года назад +1

    The problem with adopting new CSS changes is browser compatibility. Wouldn't you need to update to a new browser version that supports these new CSS properties? Not everyone updates their browser every time a new version comes out or every time CSS gets a change and update, so I'm a bit hesitant on adopting this at the moment.

  • @DereksWebsitesAndMore
    @DereksWebsitesAndMore 2 года назад

    Kevin, do you have a video about using CSS styles for accessibility features? I currently use a Javascript plugin and accessiBe.

  • @skillzorskillsson8228
    @skillzorskillsson8228 2 года назад

    I watched webdev simplified's video about this so i knew about this. But in my opinion, transforms are still needed. The reason for this is because if we use transforms we can use transform-origin. As far as i know, We cannot change the origin if we don't use transforms...

    • @KevinPowell
      @KevinPowell  2 года назад +3

      Transform-origin still works if you use these :D

    • @j-janz
      @j-janz 2 года назад

      @@KevinPowell And, it seems, transform-origin is still shared among the new separate properties, is that it?

    • @j-janz
      @j-janz 2 года назад

      Or are there separate *-origin, too?

    • @skillzorskillsson8228
      @skillzorskillsson8228 2 года назад

      @@KevinPowell Oh i had no idea about this. Well, then it is awesome :)

  • @nidheeshpv8300
    @nidheeshpv8300 2 года назад

    🔥🔥

  • @davidmaxwaterman
    @davidmaxwaterman 2 года назад

    how do you apply multiple translations or rotations, where the order is crucial?

  • @raphaelnussbaum364
    @raphaelnussbaum364 2 года назад

    Sadly there is no translate-x or translate-y. Sometimes it would be handy to just control one value and not having to do an extra round over custom properties.

  • @maksymiliank5135
    @maksymiliank5135 2 года назад

    And what is the order of these transformations? What if you want to change the default order?

  • @hujth6
    @hujth6 2 года назад

    Wasn’t this on safari for a long time now?

  • @benjaminnguyen554
    @benjaminnguyen554 2 года назад

    thanks :D

  • @jenstornell
    @jenstornell 2 года назад +1

    Great! Off topic but I wish there was something like padding-y: 2rem;

    • @jarnalyrkar
      @jarnalyrkar 2 года назад +3

      padding-block: 2rem /* y-axis */
      padding-inline: 2rem /* x-axis */
      Same with margins :)

    • @KevinPowell
      @KevinPowell  2 года назад +2

      yeah, I love logical properties, but having to write -inline or -block is so long 😅. Sounds like a potential postCSS plugin :D

    • @jenstornell
      @jenstornell 2 года назад

      @@KevinPowell I have actually been thinking of a postcss plugin for it. It probably already exists somewhere.
      In Tailwind which I still like we can write py-4 (class). It means padding 1rem on the y axis. There are px-4, mx-4, my-4 etc. Short and sweet.

  • @fcfc
    @fcfc 2 года назад

    Good to know! Tthanks. Do we have the same with 'filter' and 'mix-blend-mode' props?

    • @KevinPowell
      @KevinPowell  2 года назад +2

      Nope, just these three :)

    • @fcfc
      @fcfc 2 года назад

      @@KevinPowell thanks

  • @kekeke7815
    @kekeke7815 2 года назад

    Studying how to use soft soft is far more important than studying for my exams lmao

  • @GastonDGasmi
    @GastonDGasmi 2 года назад +1

    Like before i watch

  • @logicalfundy
    @logicalfundy 2 года назад

    I wonder if you can go full 3D programmer and do a matrix transform?

  • @yakirgot
    @yakirgot 2 года назад

    So... we don't need transform anymore?

  • @DereksWebsitesAndMore
    @DereksWebsitesAndMore 2 года назад

    Zed? Are you Canadian? 🤔

  • @isaacbaptista6207
    @isaacbaptista6207 2 года назад

    3d tutorial plz Kevin

  • @playersAvatar
    @playersAvatar 2 года назад +1

    Unfortunately the API is really insonsistent, which annoys me and I hope they will change Transforms-2 API.

    • @KevinPowell
      @KevinPowell  2 года назад

      What's inconsistent about it? If you mean the order affecting how things are applied, that is consistent if you use these. Or is there something else?

    • @playersAvatar
      @playersAvatar 2 года назад +1

      @@KevinPowell It's inconsistent with the CSS syntax in general. E.g. translate should be a shorthand for translate-x, translate-y, and translate-z like literally any other CSS property that affects axis.

    • @KevinPowell
      @KevinPowell  2 года назад +1

      @@playersAvatar ah, I see what you mean. I'd be very surprised if it ever gets updated from this, but who knows!

  • @ShaunLevett
    @ShaunLevett 2 года назад

    My caution is this is only at 79.58% support on Can I Use. So some Samsung mobiles gonna get busted.

  • @sandeeptottadi
    @sandeeptottadi 2 года назад +3

    Kyle have already made this on his channel, anyway great content.

    • @KevinPowell
      @KevinPowell  2 года назад +4

      I'm sure we have a lot of overlapping content at this point :)

  • @yanikkendler
    @yanikkendler 2 года назад

    wasnt that a thing for a long time?

    • @KevinPowell
      @KevinPowell  2 года назад

      Gained support in Safari back in April 2021, and Firefox a year before that! But it only gained support in Chrome August 1st of this year.

    • @yanikkendler
      @yanikkendler 2 года назад

      @@KevinPowell ohh i see, was using firefox a lot

  • @mohitpaddhariya
    @mohitpaddhariya 2 года назад +1

    how to use dom please make video

    • @KevinPowell
      @KevinPowell  2 года назад +2

      Do you mean DOM manipulation? I don't have many plans for JS content at the moment.

  • @overwatch9659
    @overwatch9659 2 года назад

    Like

  • @guillermomf
    @guillermomf 2 года назад +1

    I see some of your videos dubbed in spanish in your own channel. Will you continue dubbing your videos? They have very good content but you talk so fast and It's difficult to me understanding what you say 😅😅

    • @KevinPowell
      @KevinPowell  2 года назад +2

      I plan to start again, I just haven't had my videos ready ahead of time lately, and I need them ready at least a week before they go live to be able to do it.

  • @lawrencedoliveiro9104
    @lawrencedoliveiro9104 2 года назад

    Why doesn’t CSS offer general homogeneous matrices? You can do everything with them. But people seem to be scared of matrices because, you know, maths.

  • @leonardmbibi8013
    @leonardmbibi8013 2 года назад

    Thanks for your videos

  • @Spekt3r_808
    @Spekt3r_808 2 года назад

    May I suggest keeping the visuals but maintaining the comprehensive lectures.

  • @thecodingchef9292
    @thecodingchef9292 2 года назад

    This is much easier

    • @KevinPowell
      @KevinPowell  2 года назад +1

      Yeah, it's pretty great :)

  • @cbennder3877
    @cbennder3877 2 года назад

    WDS was quicker...

  • @agilkerimov
    @agilkerimov 2 года назад

    Kyle was first

    • @KevinPowell
      @KevinPowell  2 года назад +1

      Best was he best? 😅

    • @agilkerimov
      @agilkerimov 2 года назад

      @@KevinPowell no, you are, because he never responds to me.

  • @windmaomao
    @windmaomao 2 года назад

    Don’t u think working on UI these days is like reading News everyday?

  • @naazj8508
    @naazj8508 2 года назад

    Everything is fast here...ur speaking fast which is difficult to understand what ur trying to tel and also fast animations not getting into my mind

  • @magnustips
    @magnustips 2 года назад

    Cool!