The Joy of CSS Grid - Build 3 Beautifully Simple Responsive Layouts
HTML-код
- Опубликовано: 20 май 2024
- Build 3 responsive CSS grid examples to master the basics of this powerful layout system. github.com/fireship-io/224-an...
Full Tutorial: fireship.io/lessons/three-res...
1. Responsive 12-column bootstrap replacement.
2. Mosaic photo gallery.
3. Staggered animation grid.
Featuring special guest Bob Ross.
#css #grid #tutorial
Install the quiz app 🤓
iOS itunes.apple.com/us/app/fires...
Android play.google.com/store/apps/de...
Upgrade to Fireship PRO at fireship.io/pro
Use code lORhwXd2 for 25% off your first payment.
My VS Code Theme
- Atom One Dark
- vscode-icons
- Fira Code Font - Наука
Your content is unmatched in quality, timeliness and usefulness.
Couldn't agree more
Still the GOAT :)
Man your content is so on point and so professionally made. Blows my mind how you can keep up content like this. Thank you so much for your support of developers. Like Steve Balmer always said, "DEVELOPERS, DEVELOPERS, DEVELOPERS!!!"
James Best I have to agree
Definitely - my understanding of grid was growing, but five minutes of this video and it's multiplied ten fold.
you took the words out of my mouth. Hip hip for Fireship
Indeed, amazing lesson!
Like Steve Balmer always said: "I'm hungry. Bring me another baby"
Great vid! Really like the animated entry. One technique I have used instead of lots of :nth-child(1) rules is to put variables on the element in the HTML. So for the animated grid example, the divs look like:
a
b
c
d
and the CSS can be done in one rule:
.card {
animation: cardEntrance 700ms ease-out;
animation-fill-mode: backwards;
grid-area: var(--g);
animation-delay: calc(var(--i) * var(--stagger-delay));
}
- this keeps the repetition in the HTML where it is going to be anyway.
Thank you
OOooo, I like this. Coming from Python/Java any kind of repetition has that bad code smell. The next thing I want to work out is to make the grid general enough to handle a variable number of children.
I need to start using this over Bootstrap. Awesome video as always!
You won't be disappointed, it only took an hour or two to replace all my grids on Fireship.io
@@Fireship wth man, your fireship.io website is just so awesome dang it
It's amazing how in a short period of time you manage to cover alot about the topic. Simple, highly educational and easy to watch, simply awesome!
i absolutely love the mix of on-point content, clear structure and the occasional gifs and memes. your channel is one of instant recommendations for any web dev. thank you for putting so much effort into these videos.
2:57 let's start by giving our children a little bit of spacing. 🤣
Jeff, you must/will be a great father. 😍
I was just watching this video now and saw your comment, Jeff had a child recently! Congratulations to him:3
@@zafirhasananogh2421 wow, thanks for reminding of this comment I made, now it's come true, I say congratulations again, Jeff, as well. 🥳😄
That idea for passing the grid-area as the shape it occupies in the final layout is fantastic, I love it! Great video, thank you!
*A backend dev here* just to say that İ understood everything amazing
Front end is so hard. Back end has it easy.
Ï don't understand your letter Ī
Man I was woefully in need of good grid tutorials. Yours is awesome! 👏🏼
Please keep more grid coming!
I can only agree with what everyone else is saying, your content is in a class of its own. You simplify complexity and have a talent for understanding concepts in such depth that you can convey the most useful bits clearly and logically. No surprise that your channel is doing so well. Thank you and respect!
SO PROUD of this channel ! Thank you so much Jeff for your excellent work
It's been 3 years and I keep coming back to videos like this to re-learn. Lots of love, my Captain!
Good job man! Teaches GRID very well. Great presentation with simple-to-understand demos! SMASHING the LIKE button!!!!
The card entry animation is beautiful 😍
This the the most well structured video I have seen on grid and it helped a ton. Thank you. Impressive how well you had such a liner path. Most vids I see kind of just throw a zillion terms at you and it’s kind of like information through a fire hose, but the flow of your video and the execution was perfect.
You explain this very well, and thank you so much for not having distracting background music!
Unbelievable the quantity of amazing content you crank out. Thank you!
I watch this video during my workout, and I have to hurry finishing it up so that I can write the code out. Awsome video, man
Goddammit, I have subscribed already and I somehow managed to miss this one. I'm a late-starter Millenial, but you make me feel like a little kid that sees new and exciting things with glee. The more we can do ourselves without relying on systems like bootstrap, the better. Not that bootstrap should be hated on either, but it's far too large for many projects. Thanks for your hard work!
I have used grid before and watched many videos on it but this is by far the best video I came across.
I started playing with grid for the first time last week. I LOVE IT.
Sensational content. I love the way you explain and demonstrate how things works. Big thank you!
This video is great! I've been trying to level up my CSS. There is way too much CSS in my projects. This is a perfect way to cut down my CSS volume.
These videos r the best for recap.
RUclips really needs to add a Superlike button, especially for this video! I'd hit it in a heartbeat
I find it insane that you don't have like a billion subs - your videos are extremely helpful and perfect length - freaking great man!!!
I saw this video a couple of months back, today a bug was raised at my current job about some cards not being shown correctly on smaller screens and I just had to come back to this video to remember how to do it, thanks man!
Found this Channel around one week ago and man i love every single Minute of your content. :)
I've been watching a lot of RUclips videos to understand grid but never understood it but your videos explanations are so simple and easy to understand. Thanks bro
thank you very much for your video, it feels so good to follow you step by step, keep up the great work man
Respect, die best tutorial i watched for CSS-Grid right now!
Awesome video as always! Well made and easy to follow. Thank you.
THANK YOU i was looking for ages for such an easy to follow Explanation
I love the clips you add in your videos, they crack me up lol.
been practicing grid for a year and didn't know about auto-fit / auto-fill mode
thanks a lot!
lol yeah me too
lool
Thank you for sharing this, this knowledge is literally gold
Super helpful, Each part deserve a detailed video itself, thanks
simply perfect !, thanks dude awesome video tutorial as always !
Thank you for this amazing demo!
Best tutorial so far. Thank you so much. Make more and more videos, please.
Such perfect video on grid and mainly lot of valuable information put together in 12min video..that is just great
I love your videos, I was looking just because they are entertainment, but after a while you present me this complex world in a way so enjoyable and simple that i love it and i start to build apps. THX YOU (LLL)
I started learning Grid today and you uploaded it!
Really awesome content! Love the fact that it’s concise and to the point.
Thank you for the excellent video.......volumes of info ....in minutes......
The basic grid was exactly what I needed for my website. Thanks!
That is exactly what I was looking for! ily man
Thank u very much.
I knew how to work with basic grid properties but u made it very easy and clear for me.
As a newbie web developer , Learning grid for me is super awesome , thanks to you mate cheers .
Great video. As an update to it, we now have @container in CSS 3.
You are just different then others. I am a begainer. To understand grid i have already watched 20+ video on RUclips. But no one explained how i can make a photo gallery like this. This video is only 11 minutes long. But its explain a lot. 👌👌👌
This is great😬I was struggling with css fitting for years, I just learned how grid can wrap all the problems up...
The highest quality content on web-dev on the web. Thanks 🙏
I think this maybe the best css Grid video I have yet seen
Pure gold. Short and precise, 0 bullshit. Reminds me of legendary 'kudvenkat' channel for .NET.
I never writte coments on videos but yours is just sublime, thanks alot.
dude your course is golden
I watch a few videos and read a few articles on CSS Grid. Your explanation helps me understand repeat(#, size)
This is the best grid lesson ever!
Awesome video and examples! Hope you will add a lot more of these about CSS Grid
Great video! Your channel deserves more than this.
I'm working on website for 8 hours now, and seeing this video is blessing
Thnaks a lot :) You made me fall in love with CSS
Your videos are godlike in both presentation, flow and content. 11/10
The best content in time. Loved it
solid presentation! Thank you!
how could one make an explanation video in such a short duration, yet the explanation itself is so on-point
Amazing content as always, thank you.
THE BEST GRID LAYOUT VIDEO THERE IS
How can you keep uploading so many videos so fast and in such great quality.
Have you premade them?
GJ✌️
this is what im looking for
Incredible, man, thank you.
This was great! Followed along and learned a lot. One note for others: if you don't get the `grid-template-areas` exactly right, it will break everything. E.g. if you don't assign the "main" element correctly or have even one element misassigned, the whole layout gets destroyed.
Very informative 10/10
cant wait to design some dashboards with grids
Thanks a lot man, you nailed the CSS Grid :)
Just wonderful!! Love it!
Thank you for this great video on CSS Grid.
Amazing very helpful content ad always 👏 thanks a lot ! 🙏
🤯. I just learned css-grid. Thanks you!
Wow. Wish other tutorials were this good
Thank you so much for this video. I had difficulties to learn grid in the last days but now you solved all my problems :p
This is literally an underrated channel!
This is so inspiring. Thank you.
Starting off with the legendary Bob Ross! Instant fan
I actually followed along in JSfiddle and it was quite enjoyable seeing it all work so easily compared to the nightmare called flexbox. I'm definitely going to use this in my next project. Maybe even migrate one of my old projects
Wow, that's really impressive!
Amazingly good explanation. Thanks :)
Jeez, Im in love with this channel. It's like Jeff knows what I want to learn about!
ooohh how I miss Boss Ross' show. I'm not an artist but his voice and the energy he put into his paint work is almost like me building a website for a client!
Wow that was two years ago?!?!?!?!
Great video. CSS is so much
You earned yourself another subscriber good sir! Thank you!
P.S. (edited)
I just finished watching and this is exactly what I was looking for! Thank you very much!
I have never heard about this until now, interesting feature.
I am a full-stack developer focused primarily on the backend. I am currently working on my frontend skills and your channel has been a very helpful resource. Thanks
Absolutely loved it
understandable presentation, thanx, great job
gonna add this to my undergraduate project 🔥
Que creatividad en tus videos, de lo mejor en contenido para devs
😎
grids are a lifesaver
Detailed and succinct