CSS box-shadows - how to make them look good

Поделиться
HTML-код
  • Опубликовано: 12 сен 2024
  • Knowing how to use the box-shadow property is one thing. Using it in ways that actually make your designs better is a completely different story! This video is all about how to use CSS box shadows in ways that enhance your designs.
    First I look at the very basics, which is pretty much to make them really subtle. If you think that it's too subtle, you've probably nailed it.
    Second I look at how the size of the blur can affect a users perception of height, or how far off the element is from what is below it.
    CodePen 1: codepen.io/kev...
    CodePen 2: codepen.io/kev...
    CodePen 3: codepen.io/kev...
    link to material design
    Much of this was inspired by the material design documentation: material.io/gu...
    ---
    I have a newsletter! www.kevinpowel...
    New to Sass, or want to step up your game with it? I've got a course just for you: www.kevinpowel...
    ---
    My Code Editor: VS Code - code.visualstu...
    How my browser refreshes when I save: • How to automatically r...
    ---
    Support me on Patreon: / kevinpowell
    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 RUclips channel, make sure to follow me on Instagram and Twitter.
    Instagram: / kevinpowell.co
    Twitter: / kevinjpowell
    Codepen: codepen.io/kev...
    Github: github.com/kev...

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

  • @Hopewe
    @Hopewe 6 лет назад +38

    I just wanted to say that your content is simply amazing, because while not only you're being consistent with uploading, your exlanation is very good and the variety of advanced topics just top it off! Hats off!!

    • @KevinPowell
      @KevinPowell  6 лет назад +7

      Thank you so much for the kind words, I'm really glad that you're enjoying my videos 😊

    • @sobeidalagrange7129
      @sobeidalagrange7129 5 лет назад

      Agree with Hopewe 0247!!! :)

    • @tobycollin5759
      @tobycollin5759 3 года назад

      Dunno if you guys cares but if you guys are bored like me atm then you can stream all the new series on instaflixxer. Been streaming with my girlfriend these days xD

    • @sincereace6053
      @sincereace6053 3 года назад

      @Toby Collin yup, have been watching on InstaFlixxer for years myself :)

  • @paritoshbatish9984
    @paritoshbatish9984 4 года назад +6

    Thank's a lot man! For someone who has lazily done his CSS, your videos are really helpful.

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

    Great video..keep them coming..💯💯💯💯💯💯💯💯💯💯💯💯💯💯💯💯💯💯💯💯💯💯💯💯💯💯💯💯💯💯💯💯💯

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

    Lots of thanks. You are just awesome .💖💖

  • @nagahumanbeingzooofparticl8836
    @nagahumanbeingzooofparticl8836 6 лет назад +1

    Another awesome tip for box-shadows. Thank you.

  • @CarlosReveles
    @CarlosReveles 6 лет назад +5

    Shawdows .... Just saying! I'm creating my own website and I've learned a lot from you, so a big thank you!

    • @KevinPowell
      @KevinPowell  6 лет назад +2

      Thanks for pointing that out! And I'm glad the video helped 😁

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

    you're the best Kevin

  • @christopherikpat5512
    @christopherikpat5512 6 лет назад +2

    thanks kevin. you're a great teacher

  • @sobeidalagrange7129
    @sobeidalagrange7129 5 лет назад +2

    Very enlightening!!!

  • @forrest_lump
    @forrest_lump 3 года назад +1

    I think you should show the spread-radius in combination with blur-radius=0. That way you can easily show how this value reduces and enlarges the shadow layer.

  • @lekhavlekhav9882
    @lekhavlekhav9882 5 лет назад +2

    Thank you soo much Mr. Kevin.. Keep going.. Helped a lot.. 😊😊

  • @clevermissfox
    @clevermissfox 10 месяцев назад +1

    Can box shadows use a gradient for the color? Assuming no bc I don’t think you can have a background image on a shadow. In this case you would make the shadow from a pseudo element?

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

    good tutorial Kevin really enjoyed it🤗

  • @mareksawinski8225
    @mareksawinski8225 6 лет назад +1

    Great video. I would like to see more stuff like this. RUclips does not need more videos about box model or other standard crap. This is stellar. Thanks Kevin. :-)

    • @KevinPowell
      @KevinPowell  6 лет назад

      Thanks Marek, glad you liked it!

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

    This video gives me all sorts of ideas 🤔

  • @Justin-nf6tw
    @Justin-nf6tw Год назад

    thank you sir

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

    Great!

  • @sumankathet2560
    @sumankathet2560 6 лет назад

    I was eagerly waiting for this video..
    Thank you very much sir for these awesome contents😉

    • @KevinPowell
      @KevinPowell  6 лет назад +1

      No problem, glad you like them 😁

  • @Rocadamis
    @Rocadamis 3 года назад +1

    CHALLENGE! Make a parallax box shadow that moves with scrolling to suggest a moving of the light source!

  • @roytating4915
    @roytating4915 3 года назад

    Awesome!

  • @yassmaboby296
    @yassmaboby296 5 лет назад +2

    cool !!

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

    thanks.

  • @thangjamkishorchand
    @thangjamkishorchand 5 лет назад +2

    Kevin do a Website review ? Just curious

    • @KevinPowell
      @KevinPowell  5 лет назад +2

      Never done one for the channel, but doesn't mean I wouldn't do one :)

    • @thangjamkishorchand
      @thangjamkishorchand 5 лет назад +1

      @@KevinPowell coz i want to summit my site for review lol

  • @user-tp1rw8xb8i
    @user-tp1rw8xb8i 6 лет назад

    Thank you :) you help us a lot

  • @andrewnoonan5418
    @andrewnoonan5418 3 года назад

    was modifying a project n khan academy and when adding box-shadow , nothing happened-it was in a div-perhaps when i added another id tag to a h2 within that div will it stop seeing a box-shadow effect ??

  • @naimur634
    @naimur634 3 года назад

    Do u have any videos about styling custom video elements?

  • @litellavi
    @litellavi 4 года назад

    hi, you enplane so good so maybe you can help me understand how do i add a box shadow to each photo in a gallery of photos?

  • @md.rakibulislam8064
    @md.rakibulislam8064 5 лет назад

    Good video

  • @Epicradarofficial
    @Epicradarofficial 5 лет назад

    Thanks dude. Could you please upload a tut on translate and mobile first website?? Thanks.

  • @tilakmadichettitheappdeveloper
    @tilakmadichettitheappdeveloper 4 года назад

    i wanted inset shadowing . can you explain ?

  • @Destinymusic506
    @Destinymusic506 5 лет назад

    greetings from Costa Rica

    • @KevinPowell
      @KevinPowell  5 лет назад

      I wish I were in Costa Rica, it's snowing here :\

    • @Destinymusic506
      @Destinymusic506 5 лет назад

      @@KevinPowell jajajaja here summer time jajajja

    • @Destinymusic506
      @Destinymusic506 5 лет назад

      @@KevinPowell I have learned too much with their videos and that I am a beginner.

  • @stoyanchorbov7159
    @stoyanchorbov7159 6 лет назад +2

    Video idea: How to make your website good looking on every device

    • @KevinPowell
      @KevinPowell  6 лет назад +1

      I'll sort of be talking about that when I do my next 'building out a full-page' series, though that's a little while off.

  • @mohammedriyazuddin5649
    @mohammedriyazuddin5649 6 лет назад

    thanks

  • @adone.business
    @adone.business 4 года назад

    T
    haks kevin powell

  • @rbhakusho3843
    @rbhakusho3843 6 лет назад

    cool

  • @amyp.575
    @amyp.575 4 года назад

    No more yellow background, please. I could barely see any shadows at all