Skip to main
Link
Image gallery grid with pictures of dogs and birds.

How to Implement an Image Gallery Using Baseline Features

From image sharing sites to online stores, image galleries are a common pattern on the web. Images can be very data heavy, and loading images can make the page take a long time to load. In addition, users have high expectations around the usability of galleries, so it’s common to add additional libraries that further increase page size.

See more at web.dev »

The web platform has added support for many of the underlying pieces of an image gallery. So, what does it look like to code an image gallery with Baseline features? This demo showcases a variety of techniques that you can use to do just that.

Images can be some of the largest assets you ask your users to download, and image galleries by their nature often have many images. This demo uses a couple of Baseline features to help reduce the performance impact on users.

See the Pen Baseline Zoo by @web-dot-dev on CodePen.

Read full article »

Posts about CSS

  1. Grid of hot air balloon images
    Link post type

    Baseline Layered UI Patterns: <dialog> and popover

    Elements and windows that pop up on the screen are one of the most common patterns on the web. With use cases spanning from alerts and brief forms requesting data, to the now ubiquitous cookie settings prompt, these layered UI patterns are used frequently by developers.

    see all Link posts
  2. Grainy art-deco illustration of a rocket launch
    Podcast post type

    Is Sass dead yet?

    A web development podcast from LogRocket

    I talk with Noel Minchow about the unique problems that CSS has to contend with, the internal complexities that can take us by surprise, how to think about debugging, and when to use higher level tools.

    see all Podcast posts
  3. Winging It post type

    Quick & Easy UI Wins (for real)

    Hidden gems of UI development

    Join Stacy, James, and Miriam as we explore some hidden gems of UI development – from @starting-style for smoother entry transitions to performance boosts with AVIF images and using the browser’s built-in lazy-loading. We cover a variety of quick wins that you can use to make your life easier and…

    see all Winging It posts