Cross-fading DOM elements | HTTP 203

Поділитися
Вставка
  • Опубліковано 24 сер 2024
  • Turns out it's impossible to cross-fade two DOM elements unless they're opaque. Here's why, and a new feature that could fix it.
    Blog post version of this video → goo.gle/3eNzczZ
    Alpha compositing → goo.gle/3mUHaLY
    Shared element transitions → goo.gle/3FwtGNA
    Mix-blend-mode → goo.gle/34bG1sU
    The standard proposal → goo.gle/3eSHOW1
    Isolation → goo.gle/3eURPli
    More videos in the HTTP 203 series → goo.gle/HTTP203
    Subscribe to Google Chrome Developers here → goo.gle/Chrome...
    Also, if you enjoyed this, you might like the HTTP203 podcast → goo.gle/HTTP20...
    #HTTP203 #ChromeDeveloper #WebDev

КОМЕНТАРІ • 103

  • @dassurma
    @dassurma 2 роки тому +200

    Thank you everyone for the kind comments. It means a lot. It’s easy to forget how many people were watching these shenanigans.
    I’ll join Shopify in early February and I plan to continue doing the podcast with Jake. You should subscribe to it :3
    Jake: Gonna miss ya, mate. 203 was one of my consistently favorite things to do.

    • @leoff2
      @leoff2 2 роки тому +1

      Where will the podcasts be published?

    • @dassurma
      @dassurma 2 роки тому

      @@leoff2 Take a look at the video description!

    • @jawbfl
      @jawbfl 2 роки тому

      Best of luck, 203 was amazing, thank you.

    • @BassByTheBay
      @BassByTheBay 2 роки тому +2

      I don't suppose you'd be willing to share _why_ you're leaving Google, would you? 😁

    • @albertodeagostini6143
      @albertodeagostini6143 2 роки тому

      I hope the series continues to be as good as it was, but I don't think it will be easy to find a replacement.
      Thanks for everything and best of luck with your new adventure

  • @jakearchibald
    @jakearchibald 2 роки тому +81

    I'll miss you mate! We have a loose plan to carry on the podcast together (let's face it, the podcast was always loosely planned). As for the video series… I guess I'll have to make a new friend

    • @HolgerNestmann
      @HolgerNestmann 2 роки тому +4

      Surma will be missed by the community too. Looking forward to anything new podcast and new friends as well

  • @VonUndZuCaesar
    @VonUndZuCaesar 2 роки тому +123

    All the best in the future Surma! I really hope that this series continues in some kind! I learned so much from timing, memory leaks to colors! I often remember "that was in 203” and look it up again. Thank you very much!

  • @jan.melcher
    @jan.melcher 2 роки тому +63

    I wish you all the best for the future, Surma! The series was really great with you two.

  • @TheNewton
    @TheNewton 2 роки тому +34

    Hope this keeps going, 203's conversational format is great for deep dives on web tech that would otherwise live in everyones backlog of oneday-i'll-learn-why-x.
    And sometimes for other industries too like explanations in here are useful starting to demystify WHY pre-multiplication behaves like it does for SFX compositing software.

  • @IceMetalPunk
    @IceMetalPunk 2 роки тому +1

    Gonna miss you, Surma! You and Jake's chemistry is a big reason I watch even the episodes on topics I already know. Good luck at Shopify! 💗

  • @stefanspittank
    @stefanspittank 2 роки тому +13

    You guys have been an inspiration and I will miss the energy between you two. Thanks for all the episodes - I've learned a lot! And Surma: all the best to you.

  • @mutebg
    @mutebg 2 роки тому +1

    Sad to see Paul and now Sarma leaving, hope you continue with HTP203 it's my fav podcast and video show

  • @maxziebell4013
    @maxziebell4013 2 роки тому +9

    happy and sad feeling are mixing in isolation. Thanks for this great series!

  • @sangeeth96
    @sangeeth96 2 роки тому +11

    This hit the feels, esp after seeing the tweet, I HAD to check if there was a farewell episode… aaand it’s there!😭
    We hope you keep doing your best and bringing awesomeness to the web in your new role, Surma!
    (P.S. here’s me hoping Surma will make surprise appearances in the future and looking forward to podcasts!)
    (P.S.P.S. I’ll be selfish and ask Jake to pls never leave)

    • @Norfeldt
      @Norfeldt 2 роки тому

      Where is he leaving to?

    • @datsteves
      @datsteves 2 роки тому

      @@Norfeldt shopify

  • @aca48
    @aca48 2 роки тому +1

    "Don`t cry because it`s over, smile because it happened." I wish you all the best!

  • @MarcelRobitaille
    @MarcelRobitaille 2 роки тому +4

    isolation: isolate is also used for isolating z-index.

  • @pedroaugusto656
    @pedroaugusto656 2 роки тому +12

    Hey can you both start a new independent podcast called HTTP 204 ? Just now that I found a substitute for Hello Internet...

    • @jan.melcher
      @jan.melcher 2 роки тому +4

      HTTP 204 No Content But "So"?

    • @RichardRuffUK
      @RichardRuffUK 2 роки тому +1

      Hi Tim!

    • @JimCullen
      @JimCullen 2 роки тому +2

      I had a dream the other night that there was more Hello Internet. It felt so real. Waking up was such a disappointment.

  • @IceMetalPunk
    @IceMetalPunk 2 роки тому

    Jake: "Unmultiply."
    Surma: "You mean division?"
    My brain, in Travis Willingham's voice: "Reverse math!"

  • @APXmusic1
    @APXmusic1 2 роки тому +1

    Holy cow, that layering trick with CSS grid just blew my mind! I've been dealing A LOT with the issues that come up when using absolute positioning for this. Thank you! Really hope you keep this series going somehow ;)

  • @hakier_
    @hakier_ 2 роки тому

    Thank you both for THE BEST dev talk series that was bringing a lot of humor, knowledge and amusement.
    I was always happy when I saw that new video was released because I knew that I will have a great time.
    I will miss your duo together altho it is great to hear that you will contiunue your podcasts.
    It will be hard to find a new person to not make this series stiff but I hope that Jake will find one.
    I wish you all best Surma! Good luck in a new place, have fun and be health.
    Thank you both for the great work!

  • @JonnyPowell
    @JonnyPowell 2 роки тому +4

    Man I am gonna miss this series.

    • @jakearchibald
      @jakearchibald 2 роки тому

      It isn't the end of the series, just the end of Surma on the series 😢

  • @riddixdan5572
    @riddixdan5572 2 роки тому +1

    best of luck Surma. And I hope that 203 will keep on going.

  • @vitabramov89
    @vitabramov89 2 роки тому +1

    I've used "isolation: isolate" in my react design system to create isolated complex component with multiple elements with different z-index. It's really helpful!
    Surma, thanks for all that videos!
    Jake, I'm hoping to see more of this show!

  • @chrizzzly_hh
    @chrizzzly_hh 2 роки тому +6

    Another goat episode!

  • @TheTentacola
    @TheTentacola 2 роки тому +8

    Noooooo! :(

  • @Stoney_Eagle
    @Stoney_Eagle 2 роки тому +5

    A big yes for me on this!
    Unmultiply 🤣🤣

  • @medikoo
    @medikoo 2 роки тому +3

    All the best Surma! I also hope this series would keep on, as there's nothing else like that, and it'll be a great loss to have that discontinued. If not at Google, please go independent with Jake :)

  • @2802ize
    @2802ize 2 роки тому +3

    This series is one those things that I admire Google for.
    I wish you really the best for your future Surma!
    Please don't go 😭.

  • @dave6012
    @dave6012 2 роки тому

    I’ve done a ton of crossfading and I have these to say:
    1. Grid overlaying is the ticket, intrinsic size is key and absolute positioning I have used with far too many hacks
    2. I would’ve absolutely “shipped it” when Surma said so 😅
    3. I feel like such an ant now, because I had a very foggy idea of what any of this meant, and as I said, I’ve done a ton of cross-fading 😬

  • @MaxArt2501
    @MaxArt2501 2 роки тому

    Goodspeed, Surma! HTTP 203 won't be the same without you.

  • @rishabhanand4270
    @rishabhanand4270 2 роки тому +7

    All the best! Will miss this video format of just Jake and Surma having a go at each other's patience. Hope you guys can atleast keep the podcast up. And not to sidetrack too far from Surma's farewell, do we, by any sheer stroke of luck, get Paul Lewis on this format?

    • @nielskersic328
      @nielskersic328 2 роки тому

      Paul is also leaving Google this week, so I wouldn't hold my breath

  • @ASDevelopersTutorials
    @ASDevelopersTutorials 2 роки тому

    All the best to Surma. I love these series so much, you'll be missed.

  • @TheOlian04
    @TheOlian04 2 роки тому +6

    So... Surma is leaving Google?

    • @SebastianZartner
      @SebastianZartner 2 роки тому +3

      Really, Surma?! That's very sad as I love those videos with you both! I still remember when we met at View Source in Amsterdam. If it's really true, I hope you'll do fine wherever you'll go!

    • @datsteves
      @datsteves 2 роки тому

      @@SebastianZartner yep it is :) in feb (or so) he will be working at shopify

  • @alirahmani5601
    @alirahmani5601 2 роки тому +1

    Well, I didn't expect that!

  • @JonasHabel1
    @JonasHabel1 2 роки тому +2

    Good luck Surma!
    For me, you were always kind of a representative of all web developers here in Germany 😁
    Nevertheless I hope the 203 series will be continued!

  • @Surefire99
    @Surefire99 2 роки тому

    Jake, nice Salad Fingers reference there

  • @talhaakram
    @talhaakram 2 роки тому

    Ah! another episode of two guys talking about things I don't quite understand.. my favorite.

  • @ColinRichardson
    @ColinRichardson 2 роки тому +1

    I miss you already Surma

  • @jurgentreep
    @jurgentreep 2 роки тому +1

    I’m going to miss you Surma!

  • @jonathantreffler6641
    @jonathantreffler6641 2 роки тому +8

    Will HTTP203 continue without Surma ?

  • @anubhav200
    @anubhav200 2 роки тому

    Best of luck Surma!!

  • @be2wa
    @be2wa 2 роки тому +2

    I have liked this series the most. Nice leave though, Surma :D

  • @leiflinse2267
    @leiflinse2267 2 роки тому

    I have tried to solve this problem in Flutter but it is a challenge there how to isolate blending two widgets together. I enjoyed listening to you diving into this problem. :)

  • @nicodomino6713
    @nicodomino6713 2 роки тому

    Nice ending! You'll be missed Surma. Weiterhin viel Erfolg!!

  • @mc-ty4br
    @mc-ty4br 2 роки тому +1

    Thanks to all.
    Will miss Surma :( .. good luck in your future role 🍻

  • @askplays
    @askplays 2 роки тому +1

    Thanks for the amazing episodes! Good luck to you Surma.

  • @albertodeagostini6143
    @albertodeagostini6143 2 роки тому

    I think that isolation: isolate is used also to create new stacking contexts for z-index as well

  • @wmhilton-old
    @wmhilton-old 2 роки тому +1

    You will be missed Surma! 😿

  • @misode
    @misode 2 роки тому +5

    So

  • @TheNewton
    @TheNewton 2 роки тому +1

    And after this morphing between dom elements, such as skeleton loaders reshaping to the text they are placeholding or when hydrating some area like turning a select into buttons.

  • @dasten123
    @dasten123 2 роки тому +1

    Damn, I'm gonna miss him

  • @firiasu
    @firiasu 2 роки тому +2

    Very interesting, so....

  • @SimonBuchanNz
    @SimonBuchanNz 2 роки тому

    Oh man, it's so sad that Surma died, it's a rough start to the year.
    (Good luck and godspeed my friend!)

  • @StephanBijzitter
    @StephanBijzitter 2 роки тому +4

    So.

  • @cyber_chris
    @cyber_chris 2 роки тому

    what a sad day, hopefully Surma uses his personal yt channel

  • @TheUnknownFactor
    @TheUnknownFactor 2 роки тому +1

    Isolation also z-index stuff

  • @brymstoner
    @brymstoner 2 роки тому

    Jake, does this mean the show's going to be renamed HTTP 206? So long, Surma. All the best mate!

  • @XiXora
    @XiXora 2 роки тому +1

    Jake is our only constant…

  • @CoDEmanX47
    @CoDEmanX47 2 роки тому

    I'm sad about Surma leaving but also because there was no mention of occlusion and emission, which is what opacity/alpha should be split into. Furthermore, 1 minus alpha isn't possible with HDR/WCG content because 1.0 / 255 isn't the maximum possible code value and inverting light intensity in a linear working space is ill-defined as far as I understand.

    • @jakearchibald
      @jakearchibald 2 роки тому +1

      huh, as far as I know, alpha is independent of the space of the colour channels. Eg, if your colours are sRGB or rec2020, your alpha channel is still linear 0-1. What colour space does things differently? All implemented compositing operations definitely treat alpha as 0-1.

  • @JacobCanote
    @JacobCanote 2 роки тому +2

    Ship it!

  • @AlexSav
    @AlexSav 2 роки тому +1

    Just force Paul back to the show

  • @Scio_
    @Scio_ 2 роки тому

    Oh no, the HTTP 203 curse :'(

  • @JacobCanote
    @JacobCanote 2 роки тому +1

    Oh no...
    So...?

  • @fabiocroldan
    @fabiocroldan 2 роки тому +1

    I feel like my parents have split up.

  • @StupidLova
    @StupidLova 2 роки тому

    Is Surma going somewhere? He is booted

  • @martinleeuwangh
    @martinleeuwangh 2 роки тому

    Pair of so-and-sos…

  • @ZEDCWT
    @ZEDCWT 2 роки тому

    Oh....

  • @loic.bertrand
    @loic.bertrand 2 роки тому

    Could this be done using text instead of images ?

    • @jakearchibald
      @jakearchibald 2 роки тому

      The example is text 😀

    • @stannone7272
      @stannone7272 2 роки тому

      that should be possible for all DOM elements in the future

  • @hobbyturystaSEO
    @hobbyturystaSEO 2 роки тому

    Do you speak css? I speak so-so... Because I have seen only one color in fading in, I though css is about color not sort of monochromatic ish🤔

    • @jakearchibald
      @jakearchibald 2 роки тому +1

      CSS is definitely about more than just color. It covers layout, interaction, animation, compositing and more

    • @hobbyturystaSEO
      @hobbyturystaSEO 2 роки тому

      @@jakearchibald indeed but without colorS looks like Alpha-sort-of-channel-mono=chrom-ish

  • @IAmSamuelCharpentier
    @IAmSamuelCharpentier 2 роки тому

    😭😭

  • @roymond...stillalive385
    @roymond...stillalive385 2 роки тому

    lmao

  • @jenishngl
    @jenishngl 2 роки тому

    Unmultiply 😂😂

  • @ShinigamiZone
    @ShinigamiZone 2 роки тому

    😯🥺

  • @SebastianZartner
    @SebastianZartner 2 роки тому

    There was a cross-fade function defined in CSS Images 4 at some point. It's still there in www.w3.org/TR/css-images-4/#cross-fade-function, though refers to Level 3, which doesn't define it. :-D Anyway, I think _that_ function should rather be used for cross-fading two elements instead of using opacity and mix-blend-mode. None-the-less, mix-blend-mode: lighter; might still be useful in some cases, though.

    • @jakearchibald
      @jakearchibald 2 роки тому

      I mention that function in the episode. But it's only for images, so it could only work with element with an intermediate "to image" step, and that gets very complicated when it comes to clipping. The blend mode solution doesn't have these issues

  • @Pfoffie
    @Pfoffie 2 роки тому +2

    So

    • @Pfoffie
      @Pfoffie 2 роки тому +1

      sad 😞 still hoping for more http 203 - it’s the only reason subscribed to this channel haha