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) - วิทยาศาสตร์และเทคโนโลยี
Second part is here: th-cam.com/video/kINNs4uYYnY/w-d-xo.html
Well done and thank you :)
I would love to know more about transform and perspective please ❤
That “has” pseudo class is a game changer
10:19 when you click the spoiler button how do you make it unblur without any javascipt
Animate it
Reverse @@mynameisjeff5971
@@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.
@@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.
@@mynameisjeff5971 umm maybe by adding onclick action to button or to change the blur lvl?
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
Sir, I just wanna thanks to you.
👍
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!
Big yes for transforms and perspective, definitely will be an engaging one, pls do a tutorial on that
Very useful, very straightforward and with the subtitles to the vide you have definitely earned a sub
You are the best man. I learned to design with your tutorials
This is really helpful, I can't wait to see the second part of it. Thanks
This is amazing stuff ! Thank you for creating this content 🔥🔥🔥
This is amazing and incredibly helpful + well explained and demonstrated! Thank you for this.
Please keep creating these types of videos!
Stight to the point, no time wasting. Love it.
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.
Thank you for the great tutorial! Also, cute video at the end there! 😂 Subscribed
this was helpful, Thank you, hope to see the second part soon
Love it mate! Didn't know this before! Thanks
Very informative video, learned a lot myself. Thank you for providing the quality content as always.
Pretty awesome! Thanks. We're waiting for more videocss.
OMG thank you for reveal these knowledges to us. Those are exactly the reason I want to follow into this industry
Been using CSS for years and these tips are new. Thank you.
Is html css js is enough to get a 5 lpa job ??
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!
Yess! Tutorials on perspective will be very useful!
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.
Great video! I learnt a lot. Would love to see another one or a video on perspective.
I want 100parts of those kind videos ... Really awesome tutorial... Lama Dev always Rocks... I learnt Nextjs from your video as well..
Just found your channel... Awesome! Thank you for the cool videos they are fantastic for an aspiring web dev.
I'll be trying a few of those! Thank you!
This is kinda great...just answered so many "hows" questions have been asking since
Thanks
I subscribed before reaching the end of the video. You're a great teacher!
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
This is awesome! Thank you so much for the information!
What an amazing secrets you reveal today,
Please continue this series>>>>
Thank you
Yes please create more tutorials on animation. New subscriber here. Love your way of teaching 😊
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
Owww Thanks a lot.... thats really Cool!! And with much details..cant wait for part2
As always, wonderful informative tutorial 🙏
You always bring great contents. Your explanation is matchless.
Awesome and simply shown. Thank you !
this is one of the best video i ever learnt about css .... thanks alot
Nice work good to have you back
this is my first time i see your video from recommendation and it's amazing channel and content
This video was so awesome! I love it! Thank you so much. Please make more videos like this. 🤩
Awesome, thank you the tips are very helpful!
Waiting for part 2. Thanks, Lema dev.
what a good tutorial 🙌 ....... thanks so much , i would love to see the second part
Great video 💯Need second part too✨
Great tips! I wish I knew before, but thanks to you I now know.
Thank you, Lama Dev. That's such a nice video. I love it.
Very simple explanation, thank you!
Life saver video, clear and precise 👍✨
Amazing content honesty. Thanks very much Lama Dev
Wow I knew clip-path before but what you did was mind blowing
Thank you very much for sharing those tricks!
Owwww man You just a saved me!
That outline of input box bothered me a lot finally get rid of it.. Thanks a lot ❤️
Wow Thank Lama, the video has widen my css knowledge into a whole new level :O.
Love these videos. Thanks so much.
This is very helpful. Thank you lama dev
Great tricks, brother. Thank you.
Thank you sir. I havent used most of them except transition. So glad to know more about css❤❤❤❤❤❤
Excelente conteúdo mestre.❤
Wow that's crazy for me right now . I like this tip ! Thanks
This is so great tutorial, THANK YOU so much.
Great, fun and easy to follow. More videos please. :)
Great video! Subbed to your channel also since I'm new here lol Definitely want to see the next video!!!
Sure would love have a detailed tutorial on perspective and creating amazing layouts using it.
Hi, thanks so much, I have not known or used these tricks before. Great tutorial.
brooo so many useful tips! thank you
This is amazing l! Thanks for the video!
Such a cool vid! Subscribed ❤
The evolution is becoming amazing
So great! Thanks! 🎉
This is amazing! Thank you! ❤
Thanks alot sir, we want more videos like this!!
It was really helpful and i appreciate you for new tips :) see you in next one
This is amazing! Thank you so much
That's awesome I just starting learning Css and this video make me more interesting big heart bro ❤️
Amazing video🎉🎉. Very helpful
Amazing tutorial, great job 👏
Nice, man ... specially the last one
Wow, those tips are really usefull, thanks! 👍
New styles ! Thanks for teaching
Very informative...need videos like this❤
awesome tricks, subscribed !
Amazing tutorial... Just what I needed
With the video one with captions and ::cue is real;y helpful for WCAG, thanks I didn't known about that
Thanks sir exciting about next css tips videos
This is Goldmine ! Please keep making these videos
Please more videos on "perspective" and 3d transforms. There aren't many tutorials related to these topics.
Distilled awesomeness. Chapeau 🎩
Useful tips, many thanks
This is incredible! Thnak you
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.
Would screen readers read text with a display of none?
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.
@@TappinMyFoot ok thanks!
Watching this a few hours before exam and I’m grateful for it ❤️
Amazing video, very useful ❤
Thank you! Very useful! 😄
OMG.... you nailed the css...damn amazing....I learnt a lot from u. 2mrw M gonna practice those skills.
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?
Thank you for these tips . It's will me a lot. ❤
Very concise and informative
Thanks, very helpful.
Really cool thank you!