Create a cool bubble zoom effect with CSS

Sdílet
Vložit
  • čas přidán 8. 06. 2024
  • Looking to step up your CSS game? I have free and premium courses 👉 kevinpowell.co/courses?...
    🔗 Links
    ✅ Finished code: codepen.io/kevinpowell/pen/ZE...
    ⌚ Timestamps
    00:00 - Introduction
    01:05 - The HTML
    01:25 - Basic styling
    03:12 - Creating the grid
    06:17 - Animating grid-template-columns
    09:30 - Scaling up the avatar we hover on
    10:45 - Scaling up the next sibling
    11:30 - Scaling up the preceding sibling
    13:10 - Changing the transition-delay
    16:30 - Potential cleaning up you might have to do
    #css
    --
    Come hang out with other dev's in my Discord Community
    💬 / discord
    Keep up to date with everything I'm up to
    ✉ www.kevinpowell.co/newsletter
    Come hang out with me live every Monday on Twitch!
    📺 / kevinpowellcss
    ---
    Help support my channel
    👨‍🎓 Get a course: www.kevinpowell.co/courses
    👕 Buy a shirt: teespring.com/stores/making-t...
    💖 Support me on Patreon: / kevinpowell
    ---
    My editor: VS Code - code.visualstudio.com/
    ---
    I'm on some other places on the internet too!
    If you'd like a behind the scenes and previews of what's coming up on my CZcams channel, make sure to follow me on Instagram and Twitter.
    Twitter: / kevinjpowell
    Codepen: codepen.io/kevinpowell/
    Github: github.com/kevin-powell
    ---
    And whatever you do, don't forget to keep on making your corner of the internet just a little bit more awesome!

Komentáře • 75

  • @MyDpop
    @MyDpop Před 2 měsíci +52

    transition: grid-template-columns 🤯

  • @LePhenixGD
    @LePhenixGD Před 2 měsíci +20

    11:30 Holy cow I didn't knew that track to select the direct previous element!!!

    • @watchvid
      @watchvid Před 2 měsíci

      It’s brand new so I wouldn’t use it for another few years

    • @awara_coder0799
      @awara_coder0799 Před 2 měsíci

      Yya

  • @nikolaidimentiev9807
    @nikolaidimentiev9807 Před 2 měsíci +5

    best CSS channel i am aware of!!!!

  • @michaldimitrov3233
    @michaldimitrov3233 Před 2 měsíci +6

    I really like the new format. Just quickly dip in and see bits of what is possible works great for me.

  • @daveturnbull7221
    @daveturnbull7221 Před 2 měsíci +1

    This format really helps me grasp the points you're focusing on Kevin so definitely more please. I think this has a lot of potential for use in a graphical menu system - I need to go have a play around with that idea 😁

  • @wedepohl
    @wedepohl Před 2 měsíci +1

    Thank you Kevin ... love to see your thought process as you fix the "features" from the initial code. Keep it up ... I would love to see more of this.

  • @clevermissfox
    @clevermissfox Před 2 měsíci +4

    Awesome! This reminded me to check on overflow-clip-margin support, I’m so excited for that property!
    If anyone’s curious, it’s not supported at all in safari and has partial support everywhere else (supported only when using ‘overflow: clip’ on both axes). Come on safari!!

  • @farhan-app
    @farhan-app Před 2 měsíci

    I’m loving these component tutorials!! PLEASE KEEP IT UP!!!

  • @reminosouci
    @reminosouci Před 2 měsíci

    It's great to see this... It's the best css tutorial I've ever seen.

  • @DevelTime
    @DevelTime Před 2 měsíci

    You really have a talent to put in one not too long video great content, and clearly explained. I don't know if I use the effect as a whole, but learning ingredients is very helpful. Thank you for your work.

  • @samahgad241
    @samahgad241 Před 2 měsíci

    I love it so much,Thanks alot kevein😍

  • @meso9497
    @meso9497 Před 2 měsíci +7

    Next topic: magnifying glass cursor 😃

  • @brx-hashcode
    @brx-hashcode Před 2 měsíci

    You’re the king 🤴🏾 of css damn Kevin 🥶

  • @DasunSenanayake
    @DasunSenanayake Před 2 měsíci

    Thank you Kevin. This is very helpful 🙏

  • @RobertMcGovernTarasis
    @RobertMcGovernTarasis Před 2 měsíci

    Definitely up for more of this style especially if you enjoy it. Good to mix it up :)

  • @marielemaitre5006
    @marielemaitre5006 Před 2 měsíci

    I finally bought your merch! One tee, one tank and a toddler tee for my daughter ^^ we'll match, can't wait to get these in France!
    Thanks for the video. These are the kind I prefer, I learn best watching an expert do and explain what's happening.

  • @ronendavid8842
    @ronendavid8842 Před 2 měsíci

    Thank you Kevin. very helpful, give us more pls

  • @eeee29523
    @eeee29523 Před 2 měsíci

    Thanks, really helpful! 😀

  • @yasinsherif8875
    @yasinsherif8875 Před 2 měsíci

    Thank you powell ♥️

  • @deepgread6962
    @deepgread6962 Před 2 měsíci

    Thank you powell for informative video😊

  • @taariqq
    @taariqq Před 2 měsíci +1

    Zoran was happy to hear that you recommended his video on fonts.

  • @user-dk5ek9nt2m
    @user-dk5ek9nt2m Před 2 měsíci

    I actually figured this out while helping my friend on his project. It was and awesome research for it.

  • @Gemeinzam
    @Gemeinzam Před 2 měsíci

    Nice to learn from you Thanks alot !

  • @craftwithfatima4146
    @craftwithfatima4146 Před 2 měsíci

    The grid template columns thing blew my mind

  • @kiravolvo
    @kiravolvo Před 2 měsíci

    love the video. thank you

  • @krateskim4169
    @krateskim4169 Před 2 měsíci

    Awesome content

  • @mushuplatypus
    @mushuplatypus Před 2 měsíci

    Very nice, thank you

  • @alanlewis1625
    @alanlewis1625 Před 25 dny

    Hi Kevin, another great video. And yes, that format is really nice. Also, I wonder whether you might do an occasional video relating to web application CSS and techniques. E.g. Forms, displaying data in tables, master -> data drill down?? Just a thought. Your videos are very informative and useful, but there is a heavy leaning toward "marketing" style of web content. An occasional perspective on using modern CSS with a more "application" leaning would be very much appreciated. What do you think?

  •  Před 2 měsíci

    Awesome!

  • @starmadmix9045
    @starmadmix9045 Před 2 měsíci

    damn i learned 2 things from this and this is super cool

  • @deadlyecho
    @deadlyecho Před 2 měsíci +1

    Can you transition the gap and z-index to get that overlapping thing with flex ? Dunno need to try this...

  • @punkmonkeyKenpo
    @punkmonkeyKenpo Před 2 měsíci

    how would you get the overlap on the collapse to be reversed? Left most on top.
    your videos are amazing. thank you.

  • @carolmckay5152
    @carolmckay5152 Před 2 měsíci

    I like it

  • @aregawiwelejiorgs1150
    @aregawiwelejiorgs1150 Před 2 měsíci

    amazing

  • @amirmekaiten2784
    @amirmekaiten2784 Před 2 měsíci

    At the end part. When you have the horizontal scrolling, instead of the scroll bar, is it possible to have like an arrow button at the left side of the avatars, and by clicking on it. It will move to the next avatar to the left while the firat avatar on the right will dissappear. and when all avatars are over, to repeat from the 1st avatar ? ... and same for the right side ?
    Only because it would look better I think 😮

  • @emmamwiririza3015
    @emmamwiririza3015 Před 2 měsíci

    Awesome

  • @deatho0ne587
    @deatho0ne587 Před 2 měsíci

    :has(), :where() and :is() are so great and are 100x better than pre-years
    transition: grid-template-columns/rows; // Is there any issues with slow down on that like a few of the transitions? Even if it is bad might still use it over a JS solution.
    Like this and talking about new things. Stuff in the brain as long as it fits is always nice fallback.

  • @ssarosh1
    @ssarosh1 Před 2 měsíci

    Great 🎉🎉🎉🎉

  • @rajmohan9108
    @rajmohan9108 Před 2 měsíci

    Neat❤

  • @o_o_f_c_i4822
    @o_o_f_c_i4822 Před 2 měsíci +1

    Great

  • @ricseeds4835
    @ricseeds4835 Před 2 měsíci

    What channels does the CSS king watch? What other resources (books, sites etc) do you use?

  • @sameneko8979
    @sameneko8979 Před 2 měsíci

    god level css

  • @k16e
    @k16e Před 2 měsíci

    Meet CSS, the programming language for creating cool effects like this one (on the web).

  • @gudhijagadeeshkumarnaidu4803

    Hi kevin, I have tried to solve the challenge with the help of column-gap but the problem here is immdiate snap of the animation when my is hover is removed/taken off. How to avoid immediate snapping for the animation I have given to the column-gap property?

  • @RandomGeometryDashStuff
    @RandomGeometryDashStuff Před 2 měsíci

    01:28 why border-radius:100vw (seems like makes .avatar circle unless avatar width/2 < viewport width)?
    also why box-shadow depend on font-size (rem unit) but not border?

  • @user-jz4iz2qh9u
    @user-jz4iz2qh9u Před 2 měsíci

    Awesome video!
    Q: Wouldn’t grid-auto-flow: column and grid-auto-column: var(-column-size) work the same without the hard coded count? Would the transition work on the column size?

    • @KevinPowell
      @KevinPowell  Před 2 měsíci

      yeah, I didn't think of that for some reason! But I just tested it, and it doesn't animate.

    • @markboots_
      @markboots_ Před 2 měsíci

      unfortunately there is no transition for grid-auto-column

  • @LePhenixGD
    @LePhenixGD Před 2 měsíci

    1:30 Fun fact: You can use clip-path: circle() in order to create a circle without using the border-radius property

    • @KevinPowell
      @KevinPowell  Před 2 měsíci +3

      Yup! Can come in handy, and might even be a bit more descriptive... only issue is you can't have a border with it as well then, or box-shadows, both of which I wanted on these :)

    • @markboots_
      @markboots_ Před 2 měsíci

      then the box-shadow and border would not work properly

  • @mrxplays4719
    @mrxplays4719 Před 2 měsíci

    Plz do this with flex
    I am a bit confused with var and grid

  • @JesseShauffer
    @JesseShauffer Před 2 měsíci

    I am just wondering when css will replace gsap for all animations?!

  • @JonSanders
    @JonSanders Před 2 měsíci

    This is cool. Although mobile is amazing, it would be so awesome for design stuff if folks only used desktop.

  • @BryceDriesenga
    @BryceDriesenga Před 2 měsíci

    Are there any clever ways to get a count of elements with pure CSS?

  • @yhtsscienceknowled3915
    @yhtsscienceknowled3915 Před 2 měsíci

    Do you have a personal website.

  • @JammieDragon2319
    @JammieDragon2319 Před 2 měsíci

    I've tried this and the images aren't overlapping

  • @scottborrowman
    @scottborrowman Před 2 měsíci

    Couldn't you use grid-auto-flow: column; and grid-auto-columns: var(--column-size); so you don't have to worry about the repeat number?

    • @KevinPowell
      @KevinPowell  Před 2 měsíci

      That's a very good point, I should have thought of that 😅 - EDIT: I just tested it, and grid-auto-columns isn't animatable, so it doesn't work

    • @scottborrowman
      @scottborrowman Před 2 měsíci

      @@KevinPowell Ah, bummer! I was curious about that which is the reason it was a question and not a statement hah.

  • @markboots_
    @markboots_ Před 2 měsíci

    To bad we can't transition grid-auto-columns: var(--column-size),
    In that case we could've used grid-auto-flow: column instead of a fixed avatar-count

  • @_zer09_
    @_zer09_ Před 2 měsíci

    hover reminds me of the the mac menu bar

    • @KevinPowell
      @KevinPowell  Před 2 měsíci +1

      You could do some nicer easing, and have it stretch over more elements, and have something pretty well matched to that I think :)

  • @kianooshsoleimani5472
    @kianooshsoleimani5472 Před 2 měsíci

    👍👍👍👍❤❤😍😍

  • @merzaad
    @merzaad Před 2 měsíci

  • @Stoney_Eagle
    @Stoney_Eagle Před 2 měsíci

    The has selector feels like cheating 😂

  • @TomasMisura
    @TomasMisura Před 2 měsíci

    In a few years, we might not need JavaScript anymore.

  • @m12652
    @m12652 Před 2 měsíci

    Great stuff... but codepen sucks on an ipad. Its so clunky...

    • @KevinPowell
      @KevinPowell  Před 2 měsíci

      yeah, it's not ideal on touch devices...

  • @dankierson
    @dankierson Před 2 měsíci +1

    So we get 2 stupid ads now before each video . . . 😡

  • @davegreen7853
    @davegreen7853 Před 2 měsíci

    Can. you show how to make the blocking function on a chat app >?

  • @slaurent
    @slaurent Před 2 měsíci

    ok but do i need to check @supports(@supports) first 😅