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.
How to deal with large image sizes
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.
Article contents
- Lazy loading and AVIF
- Lightbox effect transitions with
@starting-style
- Using
backdrop-filter for better readability
- Aspect ratio
- Take it further
The demo where we put it all together
See the Pen Baseline Zoo by @web-dot-dev on CodePen.
Read full article »