CSS Tips And Tricks I Wish I Knew Before

แชร์
ฝัง
  • เผยแพร่เมื่อ 26 พ.ค. 2024
  • Unique CSS tips and tricks that every front-end developer should know. Most underrated CSS properties and pseudo classes, effects. #css #webdesign
    Watch the second part: • CSS Tips And Tricks 2 ...
    Join the newsletter: list.lama.dev
    If it is valuable to you, you can support Lama Dev.
    Join: / @lamadev
    Buy me a coffee: www.buymeacoffee.com/lamadev
    Source Code:
    github.com/safak/css-tips
    Join Lama Dev groups
    Instagram: / lamawebdev
    Facebook: / lamadev
    Discord: / discord
    Twitter: / lamawebdev
    00:00 CSS Clip Path
    02:32 CSS Perspective
    04:57 CSS Aspect Ratio
    05:47 CSS Filters (Blur, Gray Scale Etc)
    07:18 Styling Inputs
    08:20 CSS :is, :where, :has, :not Tutorial
    10:28 HTML CSS Video Captions (Subtitles)
  • วิทยาศาสตร์และเทคโนโลยี

ความคิดเห็น • 431

  • @LamaDev
    @LamaDev  7 หลายเดือนก่อน +20

    Second part is here: th-cam.com/video/kINNs4uYYnY/w-d-xo.html

    • @ShawnRitch
      @ShawnRitch 4 หลายเดือนก่อน +1

      Well done and thank you :)

    • @okparaeric7637
      @okparaeric7637 7 วันที่ผ่านมา

      I would love to know more about transform and perspective please ❤

  • @gabrielsaunders4642
    @gabrielsaunders4642 8 หลายเดือนก่อน +81

    That “has” pseudo class is a game changer

    • @mynameisjeff5971
      @mynameisjeff5971 4 หลายเดือนก่อน +2

      10:19 when you click the spoiler button how do you make it unblur without any javascipt

    • @SamGoldenMan
      @SamGoldenMan 3 หลายเดือนก่อน

      Animate it
      Reverse ​@@mynameisjeff5971

    • @BassByTheBay
      @BassByTheBay 3 หลายเดือนก่อน

      @@mynameisjeff5971 You could use a pseudo-class on the button, e.g.:
      .review:has(button:focus) .content { filter: none }
      But that only works while the button is focused. You could do the checkbox hack, but it's brittle and unnecessarily complex. It really is worth just doing the small amount of simple javascript to add/remove the class name that unblurs the text.

    • @NewLord
      @NewLord 2 หลายเดือนก่อน

      @@mynameisjeff5971Instead of a button use a combination of label + checkbox. Set the "id" attribute on the checkbox and use the "for" attribute on the label to reference it. Style the label as a button. Then you can do this:
      .review:has(label) input[type="checkbox"] { display:none }
      .review:has(label) input[type="checkbox"]:checked ~ .content { filter:blur(0) }
      Your HTML has to be like this: Show Spoiler
      This is something I also use for pure CSS based hamburger menus.

    • @shadowsenpai1
      @shadowsenpai1 หลายเดือนก่อน

      @@mynameisjeff5971 umm maybe by adding onclick action to button or to change the blur lvl?

  • @emerson-sheaapril8555
    @emerson-sheaapril8555 4 หลายเดือนก่อน +4

    You litterly blew my mind and i love how you tied everything together at the end. I really had bo idea you could add captions like that either!
    Im curious, as im working on a project right now. Would it be possible to highligh each word to bring emphasis to it as people spoke?
    Currently, we are just doing hard copies but i like this idea as it allows for more flexibility

  • @muhammadzohaib543
    @muhammadzohaib543 9 หลายเดือนก่อน +63

    Sir, I just wanna thanks to you.

  • @U53RN07F0UND
    @U53RN07F0UND 8 หลายเดือนก่อน

    You pack so much useful relevant information into a short video. Amazing job!
    I haven't checked yet, but if you haven't, please do make a second part to this video!

  • @anversadutt
    @anversadutt 9 หลายเดือนก่อน +9

    Big yes for transforms and perspective, definitely will be an engaging one, pls do a tutorial on that

  • @killham1337
    @killham1337 8 หลายเดือนก่อน +1

    Very useful, very straightforward and with the subtitles to the vide you have definitely earned a sub

  • @coder5336
    @coder5336 9 หลายเดือนก่อน +5

    You are the best man. I learned to design with your tutorials

  • @ekeminiben6885
    @ekeminiben6885 9 หลายเดือนก่อน +1

    This is really helpful, I can't wait to see the second part of it. Thanks

  • @naqieuddinazman4677
    @naqieuddinazman4677 9 หลายเดือนก่อน +2

    This is amazing stuff ! Thank you for creating this content 🔥🔥🔥

  • @Jrizy.
    @Jrizy. 8 หลายเดือนก่อน +5

    This is amazing and incredibly helpful + well explained and demonstrated! Thank you for this.
    Please keep creating these types of videos!

    • @fleboho
      @fleboho 6 วันที่ผ่านมา

      Stight to the point, no time wasting. Love it.

  • @Code2211
    @Code2211 9 หลายเดือนก่อน

    Awesome,
    Please make more videos on different CSS Properties and Values. It is really really helpful to understand the concepts of those advanced CSS Properties and Values.

  • @mightydawnweb
    @mightydawnweb 4 หลายเดือนก่อน +1

    Thank you for the great tutorial! Also, cute video at the end there! 😂 Subscribed

  • @GururajSudhindra
    @GururajSudhindra 9 หลายเดือนก่อน +1

    this was helpful, Thank you, hope to see the second part soon

  • @shakhzodgayratov5905
    @shakhzodgayratov5905 6 หลายเดือนก่อน +1

    Love it mate! Didn't know this before! Thanks

  • @buraksurumcuoglu8303
    @buraksurumcuoglu8303 9 หลายเดือนก่อน +1

    Very informative video, learned a lot myself. Thank you for providing the quality content as always.

  • @vastargazing8957
    @vastargazing8957 8 หลายเดือนก่อน

    Pretty awesome! Thanks. We're waiting for more videocss.

  • @alvin942
    @alvin942 9 หลายเดือนก่อน +2

    OMG thank you for reveal these knowledges to us. Those are exactly the reason I want to follow into this industry

  • @ctaylor960
    @ctaylor960 8 หลายเดือนก่อน +16

    Been using CSS for years and these tips are new. Thank you.

    • @stuntersagar5212
      @stuntersagar5212 4 วันที่ผ่านมา

      Is html css js is enough to get a 5 lpa job ??

  • @emersonguerra2772
    @emersonguerra2772 หลายเดือนก่อน

    Man, thank you so much for this! I was looking on how to do this clipping path animation for almost a year and I just don't knew what to look for!

  • @vishnusidharth9309
    @vishnusidharth9309 7 หลายเดือนก่อน +1

    Yess! Tutorials on perspective will be very useful!

  • @alainroos5383
    @alainroos5383 6 หลายเดือนก่อน

    Great job as usual ! Thank you! For some reason, I couldn't get the captions to appear on Chrome but it worked fine on Safari.

  • @Sam-mn4vl
    @Sam-mn4vl 9 หลายเดือนก่อน

    Great video! I learnt a lot. Would love to see another one or a video on perspective.

  • @anirudhachakrabarty2050
    @anirudhachakrabarty2050 9 หลายเดือนก่อน

    I want 100parts of those kind videos ... Really awesome tutorial... Lama Dev always Rocks... I learnt Nextjs from your video as well..

  • @TerryLoughran
    @TerryLoughran 8 หลายเดือนก่อน

    Just found your channel... Awesome! Thank you for the cool videos they are fantastic for an aspiring web dev.

  • @kirksurber7262
    @kirksurber7262 8 หลายเดือนก่อน

    I'll be trying a few of those! Thank you!

  • @aniefiokasuquo4781
    @aniefiokasuquo4781 7 หลายเดือนก่อน

    This is kinda great...just answered so many "hows" questions have been asking since
    Thanks

  • @lazolabucwa8821
    @lazolabucwa8821 8 หลายเดือนก่อน

    I subscribed before reaching the end of the video. You're a great teacher!

  • @PLUS-sj4sf
    @PLUS-sj4sf 8 หลายเดือนก่อน

    Thank you so much!!!!! awesome video! Yes please, these type of practical videos are amazing, would be great to focus more on each title with different examples! thanx a million

  • @BlenderModeling-yd5ft
    @BlenderModeling-yd5ft 3 หลายเดือนก่อน

    This is awesome! Thank you so much for the information!

  • @samiransari-fg6kx
    @samiransari-fg6kx 9 หลายเดือนก่อน +1

    What an amazing secrets you reveal today,
    Please continue this series>>>>
    Thank you

  • @CodeMom
    @CodeMom 8 หลายเดือนก่อน +38

    Yes please create more tutorials on animation. New subscriber here. Love your way of teaching 😊

  • @zahinhosen6579
    @zahinhosen6579 9 หลายเดือนก่อน

    thanks a lot for this video dude I was totally unaware of this css tricks
    and if possible I would like to see more parts of this video

  • @nayanbiswas370
    @nayanbiswas370 8 หลายเดือนก่อน

    Owww Thanks a lot.... thats really Cool!! And with much details..cant wait for part2

  • @junog5552
    @junog5552 9 หลายเดือนก่อน +1

    As always, wonderful informative tutorial 🙏

  • @mohdali-yq8gq
    @mohdali-yq8gq 9 หลายเดือนก่อน

    You always bring great contents. Your explanation is matchless.

  • @Deatomized
    @Deatomized 8 หลายเดือนก่อน

    Awesome and simply shown. Thank you !

  • @GameVerse215
    @GameVerse215 8 หลายเดือนก่อน

    this is one of the best video i ever learnt about css .... thanks alot

  • @brightokoro7073
    @brightokoro7073 9 หลายเดือนก่อน

    Nice work good to have you back

  • @alexdin1565
    @alexdin1565 8 หลายเดือนก่อน +1

    this is my first time i see your video from recommendation and it's amazing channel and content

  • @nihal8129
    @nihal8129 7 หลายเดือนก่อน

    This video was so awesome! I love it! Thank you so much. Please make more videos like this. 🤩

  • @ClipperRoad
    @ClipperRoad 19 วันที่ผ่านมา

    Awesome, thank you the tips are very helpful!

  • @NedumEze
    @NedumEze 8 หลายเดือนก่อน

    Waiting for part 2. Thanks, Lema dev.

  • @olayiimiika8618
    @olayiimiika8618 9 หลายเดือนก่อน

    what a good tutorial 🙌 ....... thanks so much , i would love to see the second part

  • @jayanth704
    @jayanth704 9 หลายเดือนก่อน +1

    Great video 💯Need second part too✨

  • @markcooke4866
    @markcooke4866 8 หลายเดือนก่อน

    Great tips! I wish I knew before, but thanks to you I now know.

  • @muawiznasir4926
    @muawiznasir4926 4 หลายเดือนก่อน

    Thank you, Lama Dev. That's such a nice video. I love it.

  • @altantois
    @altantois 7 หลายเดือนก่อน

    Very simple explanation, thank you!

  • @gouravkumar772
    @gouravkumar772 29 วันที่ผ่านมา

    Life saver video, clear and precise 👍✨

  • @Leesdjo
    @Leesdjo 9 หลายเดือนก่อน

    Amazing content honesty. Thanks very much Lama Dev

  • @chiragchhajed8353
    @chiragchhajed8353 9 หลายเดือนก่อน

    Wow I knew clip-path before but what you did was mind blowing

  • @gamingbyweek9411
    @gamingbyweek9411 3 หลายเดือนก่อน

    Thank you very much for sharing those tricks!

  • @whitemadrid2838
    @whitemadrid2838 8 หลายเดือนก่อน

    Owwww man You just a saved me!
    That outline of input box bothered me a lot finally get rid of it.. Thanks a lot ❤️

  • @blue_berry_pie64
    @blue_berry_pie64 9 หลายเดือนก่อน

    Wow Thank Lama, the video has widen my css knowledge into a whole new level :O.

  • @cariyaputta
    @cariyaputta 25 วันที่ผ่านมา

    Love these videos. Thanks so much.

  • @olujobifolaranmi2133
    @olujobifolaranmi2133 9 หลายเดือนก่อน

    This is very helpful. Thank you lama dev

  • @tomasburian6550
    @tomasburian6550 8 หลายเดือนก่อน

    Great tricks, brother. Thank you.

  • @journeytocoding816
    @journeytocoding816 6 หลายเดือนก่อน

    Thank you sir. I havent used most of them except transition. So glad to know more about css❤❤❤❤❤❤

  • @EusebioJoveth
    @EusebioJoveth 9 หลายเดือนก่อน +3

    Excelente conteúdo mestre.❤

  • @user-zs9sx4wd2m
    @user-zs9sx4wd2m 2 หลายเดือนก่อน

    Wow that's crazy for me right now . I like this tip ! Thanks

  • @joinglobalnetworks
    @joinglobalnetworks หลายเดือนก่อน

    This is so great tutorial, THANK YOU so much.

  • @woolgum
    @woolgum 7 หลายเดือนก่อน

    Great, fun and easy to follow. More videos please. :)

  • @albedesigns
    @albedesigns 5 หลายเดือนก่อน

    Great video! Subbed to your channel also since I'm new here lol Definitely want to see the next video!!!

  • @WaqarAhmad-jp4mw
    @WaqarAhmad-jp4mw 9 หลายเดือนก่อน +2

    Sure would love have a detailed tutorial on perspective and creating amazing layouts using it.

  • @tubeta028
    @tubeta028 7 หลายเดือนก่อน

    Hi, thanks so much, I have not known or used these tricks before. Great tutorial.

  • @devshashtag
    @devshashtag 7 หลายเดือนก่อน

    brooo so many useful tips! thank you

  • @randre83
    @randre83 7 หลายเดือนก่อน

    This is amazing l! Thanks for the video!

  • @jamesgulland
    @jamesgulland 8 หลายเดือนก่อน

    Such a cool vid! Subscribed ❤

  • @TheMetalMag
    @TheMetalMag 8 หลายเดือนก่อน

    The evolution is becoming amazing

  • @magoxxii
    @magoxxii 7 หลายเดือนก่อน

    So great! Thanks! 🎉

  • @mrgames-Will
    @mrgames-Will 7 หลายเดือนก่อน

    This is amazing! Thank you! ❤

  • @user-iz8du7vr4p
    @user-iz8du7vr4p 8 หลายเดือนก่อน

    Thanks alot sir, we want more videos like this!!

  • @luciferevil9o908
    @luciferevil9o908 9 หลายเดือนก่อน

    It was really helpful and i appreciate you for new tips :) see you in next one

  • @LeEn-lz6lj
    @LeEn-lz6lj 8 หลายเดือนก่อน

    This is amazing! Thank you so much

  • @mohammedsaleh5357
    @mohammedsaleh5357 6 หลายเดือนก่อน

    That's awesome I just starting learning Css and this video make me more interesting big heart bro ❤️

  • @hardikchavada8974
    @hardikchavada8974 8 หลายเดือนก่อน

    Amazing video🎉🎉. Very helpful

  • @piusvictor8780
    @piusvictor8780 9 หลายเดือนก่อน

    Amazing tutorial, great job 👏

  • @dixitGogoi32
    @dixitGogoi32 9 หลายเดือนก่อน

    Nice, man ... specially the last one

  • @georgesword2012
    @georgesword2012 9 หลายเดือนก่อน

    Wow, those tips are really usefull, thanks! 👍

  • @SoniaChavez-je7hq
    @SoniaChavez-je7hq 3 หลายเดือนก่อน

    New styles ! Thanks for teaching

  • @456_rider
    @456_rider 9 หลายเดือนก่อน

    Very informative...need videos like this❤

  • @hariprasatht9082
    @hariprasatht9082 3 หลายเดือนก่อน

    awesome tricks, subscribed !

  • @BB-oq6uu
    @BB-oq6uu 5 หลายเดือนก่อน

    Amazing tutorial... Just what I needed

  • @WarframeCrunch
    @WarframeCrunch 8 หลายเดือนก่อน

    With the video one with captions and ::cue is real;y helpful for WCAG, thanks I didn't known about that

  • @techfunwithaadil
    @techfunwithaadil 9 หลายเดือนก่อน

    Thanks sir exciting about next css tips videos

  • @drawingsby_sid
    @drawingsby_sid 4 หลายเดือนก่อน

    This is Goldmine ! Please keep making these videos

  • @pravinmudaliyar3421
    @pravinmudaliyar3421 8 หลายเดือนก่อน +2

    Please more videos on "perspective" and 3d transforms. There aren't many tutorials related to these topics.

  • @Adam-nw1vy
    @Adam-nw1vy 8 หลายเดือนก่อน

    Distilled awesomeness. Chapeau 🎩

  • @Mrameenmgm
    @Mrameenmgm 8 หลายเดือนก่อน

    Useful tips, many thanks

  • @chrisroberts43
    @chrisroberts43 6 หลายเดือนก่อน

    This is incredible! Thnak you

  • @TappinMyFoot
    @TappinMyFoot 8 หลายเดือนก่อน +3

    Some great tips.
    Blur for spoilers makes sense. But please don’t give the impression that blur protects sensitive information. Blurring images or text makes it hard to see on the screen. But the original text or image are available to the user in the page source. For text, screen readers would announce it like regular text. So, nobody should rely on blur styles to prevent people from seeing what was loaded into the page.

    • @YeahEsCereal
      @YeahEsCereal 4 หลายเดือนก่อน

      Would screen readers read text with a display of none?

    • @TappinMyFoot
      @TappinMyFoot 4 หลายเดือนก่อน

      Screen readers would not read display:none, but would read text that has a blur style but doesn't have display:none. My point was that, for sensitive info, neither blur, nor display:none is enough to protect anything the visitor shouldn't know. If it's in the http response, the user can see it in inspect or view page source.

    • @YeahEsCereal
      @YeahEsCereal 4 หลายเดือนก่อน

      @@TappinMyFoot ok thanks!

  • @arshoweo8701
    @arshoweo8701 7 วันที่ผ่านมา

    Watching this a few hours before exam and I’m grateful for it ❤️

  • @qasimalikan3559
    @qasimalikan3559 5 หลายเดือนก่อน

    Amazing video, very useful ❤

  • @throbicon
    @throbicon 3 หลายเดือนก่อน

    Thank you! Very useful! 😄

  • @nadeemakramansari1331
    @nadeemakramansari1331 8 หลายเดือนก่อน

    OMG.... you nailed the css...damn amazing....I learnt a lot from u. 2mrw M gonna practice those skills.

  • @paulcharman8113
    @paulcharman8113 8 หลายเดือนก่อน +1

    Really interesting and well explained video. Just wondering how you would make use of something like the perspective example. Could you place text on the shape that would move with the shape perhaps?

  • @Screenwave007
    @Screenwave007 5 หลายเดือนก่อน

    Thank you for these tips . It's will me a lot. ❤

  • @ephraimbernard5773
    @ephraimbernard5773 8 หลายเดือนก่อน

    Very concise and informative

  • @NoudvD63
    @NoudvD63 9 หลายเดือนก่อน

    Thanks, very helpful.

  • @cameroncoop7878
    @cameroncoop7878 8 หลายเดือนก่อน

    Really cool thank you!