CSS Grid Responsive Image Gallery Tutorial

Sdílet
Vložit
  • čas přidán 29. 06. 2024
  • In this CSS project video we'll be using the CSS grid to build a responsive image gallery that works on mobile & web. A few extra CSS tips and tricks sprinkled in. We'll be animating the gallery labels, using CSS grid to auto-setup our columns and rows, using CSS animations to animate our image labels and more!
    📁 Project Files 📁
    github.com/wilsmex/edu/tree/m...
    📺 Related Videos 📺
    ➞ CSS Grid Tutorial: • CSS Grid Tutorial | Re...
    💖 SUBSCRIBE (Please) 💖
    czcams.com/users/FollowAndrew?s...
    🚨 Cheap Professional Web Hosting 🚨
    studentwebhosting.com
    🙏 Become a Patron for support! 🙏
    / followandrew
    🌐 Website 🌐
    followandrew.dev
    📢 Social Media 📢
    TWITTER (@followandrewedu) ➞ / followandrewedu
    #css #grid #imagegallery #responsive

Komentáře • 134

  • @christianchase8066
    @christianchase8066 Před 4 lety +15

    I appreciate how you make very little assumptions about the viewer's knowledge while going through this. Also that you explain even the little things, like shorthand for creating all those divs. You're awesome!

  • @ivanastorga1641
    @ivanastorga1641 Před 3 lety

    Hey Andrew, I want to give you my thanks, this tutorial makes me definetly understand grid fully.
    You won another sub! Greetings from Chile.

  • @michaelc1042
    @michaelc1042 Před 3 lety

    Thank you for a very informative and easy to understand video. I appreciate you explaining the simple reason for each of the lines and how they affect the end result. Thank you again!

  • @MartinSc76
    @MartinSc76 Před 3 lety +2

    Absoluteley amazing masterpiece, thank you very much fir sharing!

  • @photoinshot1355
    @photoinshot1355 Před 3 lety

    Excellent tutorial, not only a great coder but also a great teacher. I can’t understand why the views are not much higher. Thanks a lot

  • @Jan-S-Simonsen
    @Jan-S-Simonsen Před 2 lety

    All my questions answered in one tutorial. Thank you Andrew. You have a new sub Sir!

  • @hiwayshoes
    @hiwayshoes Před 4 lety

    Low-def, High-def, its all good! I liked the tutorial so much the first time around, I’ll just have to watch it again, lol... thanks Andrew!

  • @sashaleal1299
    @sashaleal1299 Před 2 lety

    Loved your explanation, very clear and brief. Good pace. Will recommend your channel!

  • @user-ez5ff2bb8o
    @user-ez5ff2bb8o Před 3 měsíci

    One of the best explanation videos I have seen. Loved it and it worked perfectly, keep up the good work.

  • @__jake.m
    @__jake.m Před 2 lety +1

    Thank you so much for the tutorial. You've explained this concept so well. I had a look at Google Chrome, and the grid overlays are under "layout", as well. Once again, thank you! 😊

  • @vaibhavgagneja822
    @vaibhavgagneja822 Před 3 lety

    you are awesome man !! some people say they will not explain and they don't but you explain as well nice work keep making more videos and keep explaining : )

  • @oncalldev
    @oncalldev Před 3 lety

    Great tutorial. Clear and to the point on how to create a flexible image gallery using CSS Grid. As a side bonus, it shows how to methodically work through a real world project step by step. Thanks.

  • @ashutoshdutondkar4744
    @ashutoshdutondkar4744 Před 2 lety

    You have done great job! Perfect understanding video it is. Totally appreciate.

  • @gabcompaore8263
    @gabcompaore8263 Před 2 lety

    I appreciated to watch and learn with this tutorial. Clean explanation and beautiful voice. Thank you teacher!

  • @bobich1244
    @bobich1244 Před 3 lety

    Thanks so much, it really helped me. You take the time to explain and to show your code it's very helpful !! Nice of you. You didn't talk about order of placement of the pictures but it was already enough to help me.

  • @drhastings
    @drhastings Před 4 lety

    Thank you for the tutorial Sir...One of the best Lectures on CZcams.👌

  • @TheySpeakOfEster
    @TheySpeakOfEster Před 3 lety +2

    I just want to say that this tutorial is so well done. Thank you for explaining why things work the way they do. Your video is so well-paced and so thorough. It's really hard to find someone who actually teaches this well - great job and more than anything, thank you :)

  • @angladephil
    @angladephil Před 4 lety +1

    Great tutorial, great teacher and ... great CSS (I can't imagine the amount of calculations and/or primitives used by the CSS core/engine !). Thank you very much from France, Andrew !

  • @Its_motion_media
    @Its_motion_media Před 2 lety

    Thank you! You sorta lost me when you were making the animations but I am so glad I didn't click off. Great tutorial! Keep up the awesome work!

  • @jpacs3738
    @jpacs3738 Před 4 lety

    Thank you so much! Your creation is awesome! :)

  • @alinatekumara8541
    @alinatekumara8541 Před 2 lety

    i am a beginner. Very well explained. I finally understand css grid. Thank you.

  • @patriayvida4209
    @patriayvida4209 Před 2 lety

    AWESOME JOB!!! YOU'RE A MASTER!!!

  • @GerritforBazeja
    @GerritforBazeja Před 4 lety

    nice to be flexible with CSS! love it!

  • @96Salima
    @96Salima Před 3 lety

    Wow Thank you so much for such an interesting tutorial!🙏🏻😍

  • @Tmartinez114
    @Tmartinez114 Před 2 lety

    Perfect video that helped me tremendously. I am now subscribing!

  • @saudwang9891
    @saudwang9891 Před 4 lety

    thank you so much you help me all for learning how to work with a grid layout

  • @mattgallant6910
    @mattgallant6910 Před 2 lety

    Man you explain things amazing! thank you !

  • @NorlynCodes
    @NorlynCodes Před 4 lety

    Thank you. This is so good!

  • @imjustfabi7545
    @imjustfabi7545 Před 2 lety

    Realy well done, Great Video, thx.

  • @FollowAndrew
    @FollowAndrew  Před 4 lety +3

    Hi All, republished, this time without the 'demo mode' watermark!! :) (lame screen recording license issue on previous upload)
    Here's the CSS Grid Crash Course Tutorial: czcams.com/video/SPFDLHNm5KQ/video.html

  • @user-ox7pk1nb8c
    @user-ox7pk1nb8c Před 11 měsíci

    Great tutorial, thanks!

  • @Valentina-kr2gp
    @Valentina-kr2gp Před 3 lety +2

    thank you for this king

  • @NooMJeSWanG
    @NooMJeSWanG Před 3 lety

    Thank you so much for your time, Excellent video Bro (From Thailand :))

  • @johannesdillmann5864
    @johannesdillmann5864 Před rokem

    Hey Andrew,
    just wanted to say thanks! :) I'm an absolute html/css beginner and have watched dozens of layout videos the last few days, but you are by far the best! You explain factual and yet its easy to follow you! TheCodingTrain vibes here!!!
    Thanks and greetings from Berlin! peace

  • @salemmajed916
    @salemmajed916 Před 6 měsíci

    Very useful, thanks for the explanation.

  • @yamillayicov7256
    @yamillayicov7256 Před 10 měsíci

    "The best video about grid I've seen

  • @mariocalapine2749
    @mariocalapine2749 Před rokem

    Find this tutorial clearly explained..thanks man..!

  • @digigoliath
    @digigoliath Před 3 lety

    Awesome!!! TQVM!!

  • @theman7050
    @theman7050 Před 2 lety

    Love this!

  • @BL4CKHAWK8
    @BL4CKHAWK8 Před 3 lety

    Excellent video, thank you for your time

  • @Zarovsky007
    @Zarovsky007 Před 2 lety

    Thank you for the tutorial.

  • @shubhangilohitkumar5328

    WOahhh!!! This is perfect way to teach

  • @angladephil
    @angladephil Před 4 lety +6

    In addition, nice trick with the "w-x" and "h-x" classes !

  • @UweMadej
    @UweMadej Před 2 lety

    Unfortunately I can give you only 1 thumb up. This is a high professional Tutorial and I learned a lot. I am very thankful. Uwe from Germany

  • @techpixvo
    @techpixvo Před 3 lety

    Andrew you´re the best! Cheers from Argentina!

  • @wendydherin1669
    @wendydherin1669 Před 4 lety

    This is all kinds of awesome. Thanks!

  • @fredlaurent32
    @fredlaurent32 Před rokem

    Merci je comprend mieux css grid et je trouve cela super grâce a vous

  • @harshshrivastava5981
    @harshshrivastava5981 Před 3 lety

    its really awesome..well done sir

  • @hasantareq9394
    @hasantareq9394 Před 3 lety +1

    This grid tutorial makes me full understand about grid..
    Note: every step u should pause & try urself.. Thus gonna make it easier. 😊

  • @832giorgio
    @832giorgio Před 3 lety

    nice and clear explanation👌

  • @niceman5890
    @niceman5890 Před rokem +1

    Thank you very much!

  • @cooolaros
    @cooolaros Před 3 lety

    Well done!

  •  Před 4 lety

    Excelent! I have suffer a lot because people publish theoretical info that doesn't always work out depending on what we really need to accomplished. You certainly explain what we face when try to do real work.
    Thank you, thank you, thank you

  • @GiuseppeTresTRIK
    @GiuseppeTresTRIK Před rokem

    🤩Grazie

  • @baliyachtservices7505
    @baliyachtservices7505 Před 3 lety

    So good, thank you

  • @saurav3d249
    @saurav3d249 Před 4 lety

    you are a great teacher..thankyou very much..it helped a lot

  • @ExpertGamingOnline
    @ExpertGamingOnline Před 3 lety

    This is amazing

  • @paininktattoo
    @paininktattoo Před 4 lety

    Awesome!!!! thanks

  • @patrickflanagan5415
    @patrickflanagan5415 Před rokem

    Hey bro! I love this tutorial and learned a lot from it. I was wondering if you would consider making a separate video explaining how to use your own images from your computer into Vscode? I'm struggling with this for some reason

  • @melonrush13
    @melonrush13 Před 4 lety

    This would have taken me a lot of trial and error blind CSS coding if it weren't for you. :) Thanks, much appreciated. Great video, and great explaining!

  • @adisakjantrasopark7672

    Thank you so much

  • @khachikgrigoryan1105
    @khachikgrigoryan1105 Před 3 lety

    Thank you bro)))) its Nice

  • @Passkin
    @Passkin Před 2 lety +1

    This is by far the best gallery tutorial! Do you know how to make the text size responsive to the screen as well? The text size seems to stay at 25px no matter the screen size. Thanks!

  • @yarko7619
    @yarko7619 Před 2 lety

    Thanks!

  • @MrUsamamubeen1
    @MrUsamamubeen1 Před 2 lety

    Thank You

  • @IamPetrus
    @IamPetrus Před 3 lety +1

    Hey Andrew.
    Im implementing this layout of yours with a full enlargement of each item on hover/click. Im getting rid of animations although Im refreshing my practice on them. You are saving me tons of hours. Wheres your patreon? Thank you thank you thank you. You are star!!

  • @MarcCardwell
    @MarcCardwell Před 4 lety

    nice, nice! i'm starting to get it now and understand the code (i could not _write_ it, mind you). the only thing i didn't like was the blur extended outside the image area a bit.another YT-er highlighted grid / flex grid don't solve all design problems. honestly, that was what i was looking for, like " just work and understand grid, and you can design anything", but that's not right.

  • @cybersamurai99
    @cybersamurai99 Před 11 měsíci

    awesome

  • @purplefan204
    @purplefan204 Před 3 lety

    Awesome Stuff! Simply Love this! Makes CSS-Grid look like a piece of cake!! One question though - would it be possible to set the classes like w-3, h-2 etc based on the image dimensions?

  • @yhyclfyhy8583
    @yhyclfyhy8583 Před 2 lety

    ths bro,good job.

  • @yourfriend8838
    @yourfriend8838 Před 4 lety

    Hello i really like the tutorial and your style of teaching. You should consider syncing your videos on LBRY (other platform than youtube) im sure they would love to have you.

  • @pejuangrasarindu
    @pejuangrasarindu Před rokem

    thanks, your tutorial is very easy, i have 1 question, when i use w-2 and h-2 ? i don't understand it

  • @parthanas3537
    @parthanas3537 Před 2 lety

    kudos

  • @amartyavishwakarma3794

    hello sir. I love this tutorial and it helped me a lot. You made it very simple and easy to understand I very appreciate it. Thanku sir. Just waana say one thing that some of the tags doesnt worked the same as it does in your program code otherwise it was an awesome video

  • @peterkabiru5144
    @peterkabiru5144 Před 3 lety

    thanks

  • @qizhou32
    @qizhou32 Před rokem

    Thanks for the tutorial, I use the pics to finish the design. Because I can't use the api, can't get the images from the unsplash.

  • @ezequielconsorti7542
    @ezequielconsorti7542 Před 3 lety

    Amazing work! really awesome, just one question... is there a way to set the imgs to be opened in full view when clicked?
    thanks for the great work!

  • @EyeIn_The_Sky
    @EyeIn_The_Sky Před 3 lety

    can you show us how you can move an image from a grid row to a grid column when the viewport is decreased from PC screen size to smartphone size (Does it have to be done by media query?)

  • @haccuk
    @haccuk Před 4 lety

    Really excellent tutorial thank you very much. Can I ask could I add light box effect to the images?

    • @FollowAndrew
      @FollowAndrew  Před 4 lety +1

      Most light boxes are done with Javascript (although pure css boxes do exist), so it's a bit outside the scope of this tutorial

    • @haccuk
      @haccuk Před 4 lety

      @@FollowAndrew Thanks for your reply. I have got it working with JS. I'm only trying to learn something and keeping brain active in lockdown. I'm 79 so no wish to take it a lot farther!

  • @nondemutale
    @nondemutale Před rokem

    Grid-template-columns:repeat(6, 1fr) experiencing an expected RBRACE at line 105, col 35

  • @adamgray4866
    @adamgray4866 Před 4 lety

    I am still fairly new to learning css grids and have watched you'r previous video explaining how grids work and feel i have a good amount of understanding of it. But i am trying to create an image gallery as you have here and i am following along with your tutorial but i am not getting the same results, my images are still very large and using the object-fit: cover appears to not be doing anything. Any advice on what i may be doing wrong? Great videos by the way you have a great way of explaining things and making them easy to understand.

    • @FollowAndrew
      @FollowAndrew  Před 4 lety +1

      Could be the web browser, as object-fit is relatively new. Try a different browser to test maybe?

  • @davidgilart
    @davidgilart Před 4 lety

    Hello Andrew. Great tutorial. however even if I follow step by step dreamwaver 20.2 what I see in my screen is not at all close to what you show in your screens. grid-template-colums: repeat(6,1fr) is red tagged by css dreamweaver. and the whole process does not work at all. is there a way around this?

  • @vasylsukovych8910
    @vasylsukovych8910 Před 3 lety

    Hi, great tutorial. But I would like to know what plugin do you use to preview the page in Visual Code ??? Thanks

    • @ExpertGamingOnline
      @ExpertGamingOnline Před 3 lety

      Its probably Live Server. The page automatically refreshes when you save the HTML/CSS file in vscode.

  • @isoldpower
    @isoldpower Před 2 lety

    A bit outdated but talking about backdrop-filter you can just replace it with adding filter: blur(5px) on .gallery-item:hover .image .img

  • @thatcc
    @thatcc Před 4 lety

    Is there any way I can do this with updated fb posts? (for a blog)

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

    the blur and fade out behind the text...how do I change it to just fit the text and exceed the borders of the container/img? its a cool idea but this way it looks like a code error, not a fan; I want it to just cover the background of the text and then feather the edges of it. Ai told me i need to add another div after the text div to create another layer, but this is upper level stuff.

  • @GnarlyEmoji
    @GnarlyEmoji Před rokem

    is there a way to make this work with videos and images?

  • @lotus1219
    @lotus1219 Před 2 lety

    how do i pull local images without having to list them one by one?

  • @elmira5244
    @elmira5244 Před 4 lety +1

    whats the difference between grid-auto-rows and grid-template-row?

    • @FollowAndrew
      @FollowAndrew  Před 4 lety +3

      Auto rows property are part of the “implicit” grid, that is created based on any arbitrary amount of grid items. Template rows are part of the “explicit” grid for a defined set of rows

  • @nilavabepari3061
    @nilavabepari3061 Před 3 lety

    i dont know why but my grids are not working !!! please can someone help

  • @endlesslearning26
    @endlesslearning26 Před 3 lety +1

    Just a small talk dude:-
    Why did u stopped making videos,your tutorials are quite awesome,
    I know it can be daunting to making doZens of videos but still get really less view,but ya your content is great

    • @FollowAndrew
      @FollowAndrew  Před 3 lety +2

      More to come!

    • @endlesslearning26
      @endlesslearning26 Před 3 lety

      @@FollowAndrew brother can u please make a video about how to make a mobile first website
      my design looks good on desktop but Quite bad on mobile
      Pleaseeee help 🙂

  • @Alaefarran321
    @Alaefarran321 Před 3 lety

    when typing the attributes to request random images from unplash, it return nothing!! can you help please?

  • @suyhuynh7716
    @suyhuynh7716 Před 2 lety

    1000 photos will generate 1000 classes

  • @gamerl4g111
    @gamerl4g111 Před 3 lety +1

    Can i use this API from unsplash.com, or im gonna have copyright issues?

    • @FollowAndrew
      @FollowAndrew  Před 3 lety +1

      All Unsplash images are fully copyright free!

  • @jjglaser
    @jjglaser Před rokem

    if only the images could autofit into the columns with their original dimensions...

  • @Kunalalal
    @Kunalalal Před 2 lety

    he sounds and looks like steve jobs

  • @Dexter101x
    @Dexter101x Před 3 lety

    Apparently, Code doesn't accept *grid-gap* anymore

  • @koumouts
    @koumouts Před 3 lety

    really well done. BUT.. the audio: room hummmmmmmm

    • @FollowAndrew
      @FollowAndrew  Před 3 lety +2

      Yeah, better mic noise suppression these days

    • @koumouts
      @koumouts Před 3 lety

      @@FollowAndrew I think it really gives longevity to the work when the audio is attractive, crisp, quiet no room noise... sorry my inner audio engineer pokes it head often. But really, I have been enlightened by your vids. Thanks

  • @industrialhomestead4028

    algorithm

  • @salmansiddiqui2890
    @salmansiddiqui2890 Před 4 lety