last article<\/a>, we created a complex-looking grid with a few lines of CSS that put CSS Grid\u2019s implicit grid and auto-placement features to use. In this article, we relied on some CSS Grid sizing trickery to create a fancy grid of images that zoom on hover and cause the grid to adjust accordingly. All of this with a simplified code that is easy to adjust using CSS variables!<\/p>\n\n\n\nIn the next article, we will play with shapes! We will combine CSS grid with mask and clip-path to get fancy grid of images.<\/p>\n","protected":false},"excerpt":{"rendered":"
Creating a grid of images is easy, thanks to CSS Grid. But making the grid do fancy things after the images have been placed can be tricky to pull off. Say you want to add some fancy hover effect to the images where they grow and zoom beyond the rows and columns where they sit? […]<\/p>\n","protected":false},"author":281881,"featured_media":367211,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"sig_custom_text":"","sig_image_type":"featured-image","sig_custom_image":0,"sig_is_disabled":false,"inline_featured_image":false,"c2c_always_allow_admin_comments":false,"footnotes":"","jetpack_publicize_message":"Zooming Images in a Grid Layout by @ChallengesCSS","jetpack_is_tweetstorm":false,"jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":[]},"categories":[4],"tags":[686,1373,19051],"jetpack_publicize_connections":[],"acf":[],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/css-tricks.com\/wp-content\/uploads\/2022\/07\/grid-zoom-image.png?fit=1200%2C600&ssl=1","jetpack-related-posts":[{"id":374826,"url":"https:\/\/css-tricks.com\/css-grid-and-custom-shapes-part-3\/","url_meta":{"origin":367204,"position":0},"title":"CSS Grid and Custom Shapes, Part 3","date":"November 11, 2022","format":false,"excerpt":"After Part 1 and Part 2, I am back with a third article to explore more fancy shapes. Like the previous articles, we are going to combine CSS Grid with clipping and masking to create fancy layouts for image galleries. CSS Grid and Custom Shapes series Part 1Part 2Part 3\u2026","rel":"","context":"In "Article"","img":{"alt_text":"","src":"https:\/\/i0.wp.com\/css-tricks.com\/wp-content\/uploads\/2022\/11\/Screen-Shot-2022-11-01-at-12.11.28-PM.png?fit=1200%2C746&ssl=1&resize=350%2C200","width":350,"height":200},"classes":[]},{"id":367324,"url":"https:\/\/css-tricks.com\/css-grid-and-custom-shapes-part-1\/","url_meta":{"origin":367204,"position":1},"title":"CSS Grid and Custom Shapes, Part 1","date":"August 15, 2022","format":false,"excerpt":"In a previous article, I looked at CSS Grid's ability to create complex layouts using its auto-placement powers. I took that one step further in another article that added a zooming hover effect to images in a grid layout. This time, I want to dive into another type of grid,\u2026","rel":"","context":"In "Article"","img":{"alt_text":"","src":"https:\/\/i0.wp.com\/css-tricks.com\/wp-content\/uploads\/2022\/08\/FD3186CB-2199-4F34-8B68-D013284C35FC.jpeg?fit=1200%2C600&ssl=1&resize=350%2C200","width":350,"height":200},"classes":[]},{"id":376528,"url":"https:\/\/css-tricks.com\/animating-css-grid-how-to-examples\/","url_meta":{"origin":367204,"position":2},"title":"Animating CSS Grid (How To + Examples)","date":"January 25, 2023","format":false,"excerpt":"I\u2019m pleased to shine a light on the fact that the CSS grid-template-rows and grid-template-columns properties are now animatable in all major web browsers! Well, CSS Grid has technically supported animations for a long time, as it\u2019s baked right into the CSS Grid Layout Module Level 1 spec. But animating\u2026","rel":"","context":"In "Article"","img":{"alt_text":"","src":"https:\/\/i0.wp.com\/css-tricks.com\/wp-content\/uploads\/2023\/01\/grid-animation.jpg?fit=1200%2C600&ssl=1&resize=350%2C200","width":350,"height":200},"classes":[]},{"id":372396,"url":"https:\/\/css-tricks.com\/css-grid-and-custom-shapes-part-2\/","url_meta":{"origin":367204,"position":3},"title":"CSS Grid and Custom Shapes, Part 2","date":"August 22, 2022","format":false,"excerpt":"Alright, so the last time we checked in, we were using CSS Grid and combining them with CSS clip-path and mask techniques to create grids with fancy shapes. Here's just one of the fantastic grids we made together: CodePen Embed Fallback CSS Grid and Custom Shapes series Part 1Part 2\u2026","rel":"","context":"In "Article"","img":{"alt_text":"","src":"https:\/\/i0.wp.com\/css-tricks.com\/wp-content\/uploads\/2022\/08\/zig-zag-panel.png?fit=1104%2C492&ssl=1&resize=350%2C200","width":350,"height":200},"classes":[]},{"id":306022,"url":"https:\/\/css-tricks.com\/a-grid-of-logos-in-squares\/","url_meta":{"origin":367204,"position":4},"title":"A Grid of Logos in Squares","date":"April 6, 2020","format":false,"excerpt":"Let's build a literal grid of squares, and we'll put the logos of some magazines centered inside each square. I imagine plenty of you have had to build a logo grid before. You can probably already picture it: an area of a site that lists the donors, sponsors, or that\u2026","rel":"","context":"In "Article"","img":{"alt_text":"","src":"https:\/\/i0.wp.com\/css-tricks.com\/wp-content\/uploads\/2020\/04\/grid-of-logos.png?fit=1200%2C902&ssl=1&resize=350%2C200","width":350,"height":200},"classes":[]},{"id":372952,"url":"https:\/\/css-tricks.com\/how-i-made-a-pure-css-puzzle-game\/","url_meta":{"origin":367204,"position":5},"title":"How I Made a Pure CSS Puzzle Game","date":"September 9, 2022","format":false,"excerpt":"I recently discovered the joy of creating CSS-only games. It\u2019s always fascinating how HTML and CSS are capable of handling the logic of an entire online game, so I had to try it! Such games usually rely on the ol\u2019 Checkbox Hack where we combine the checked\/unchecked state of a\u2026","rel":"","context":"In "Article"","img":{"alt_text":"","src":"https:\/\/i0.wp.com\/css-tricks.com\/wp-content\/uploads\/2022\/08\/puzzle-article.png?fit=1200%2C604&ssl=1&resize=350%2C200","width":350,"height":200},"classes":[]}],"_links":{"self":[{"href":"https:\/\/css-tricks.com\/wp-json\/wp\/v2\/posts\/367204"}],"collection":[{"href":"https:\/\/css-tricks.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/css-tricks.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/css-tricks.com\/wp-json\/wp\/v2\/users\/281881"}],"replies":[{"embeddable":true,"href":"https:\/\/css-tricks.com\/wp-json\/wp\/v2\/comments?post=367204"}],"version-history":[{"count":6,"href":"https:\/\/css-tricks.com\/wp-json\/wp\/v2\/posts\/367204\/revisions"}],"predecessor-version":[{"id":372333,"href":"https:\/\/css-tricks.com\/wp-json\/wp\/v2\/posts\/367204\/revisions\/372333"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/css-tricks.com\/wp-json\/wp\/v2\/media\/367211"}],"wp:attachment":[{"href":"https:\/\/css-tricks.com\/wp-json\/wp\/v2\/media?parent=367204"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/css-tricks.com\/wp-json\/wp\/v2\/categories?post=367204"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/css-tricks.com\/wp-json\/wp\/v2\/tags?post=367204"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}