<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/image-gallery-with-popovers-and-aim-anchor-interpolated-morph-frontend-masters-blog-pzisxo3hp" -->

---
title: Image Gallery with Popovers and AIM (Anchor-Interpolated...
description: A walkthrough of building a JavaScript-free image gallery using the browser Popover API combined with AIM (Anchor-Interpolated Morph), a CSS technique that...
canonical: https://daily.dev/posts/image-gallery-with-popovers-and-aim-anchor-interpolated-morph-frontend-masters-blog-pzisxo3hp
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Image Gallery with Popovers and AIM (Anchor-Interpolated Morph) – Frontend Masters Blog | daily.dev
og:description: A walkthrough of building a JavaScript-free image gallery using the browser Popover API combined with AIM (Anchor-Interpolated Morph), a CSS technique that...
og:url: https://daily.dev/posts/image-gallery-with-popovers-and-aim-anchor-interpolated-morph-frontend-masters-blog-pzisxo3hp
og:image: https://api.daily.dev/og/posts/PZISXo3hP.png
og:image:alt: Image Gallery with Popovers and AIM (Anchor-Interpolated Morph) – Frontend Masters Blog
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Image Gallery with Popovers and AIM (Anchor-Interpolated Morph) – Frontend Masters Blog

**[Frontend Masters](https://daily.dev/sources/frontendmasters)** · 6 min read · 0 upvotes · 0 comments

## Summary

A walkthrough of building a JavaScript-free image gallery using the browser Popover API combined with AIM (Anchor-Interpolated Morph), a CSS technique that animates elements from the coordinates of a CSS anchor element. The tutorial covers the three animation states (entry, open, exit) using @starting-style, :popover-open, and :not(:popover-open), explains transition-behavior: allow-discrete for animating display changes, and shows how anchor() and anchor-size() functions drive the morph effect from thumbnail to full image and back.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://frontendmasters.com/blog/image-gallery-with-popovers-and-aim-anchor-interpolated-morph/>

## Similar posts on daily.dev

- [Anchor Interpolated Morph \(AIM\) · January 23, 2026](https://daily.dev/posts/anchor-interpolated-morph-aim-january-23-2026-qfxomvnzy) · Adam Argyle · 0 upvotes · 0 comments
- [Getting Started With The Popover API — Smashing Magazine](https://daily.dev/posts/getting-started-with-the-popover-api-smashing-magazine-vjbltzl0j) · Smashing Magazine · 47 upvotes · 1 comments
- [In-N-Out Animations: Popovers \(Part 2/3\) – Master.dev Blog](https://daily.dev/posts/in-n-out-animations-popovers-part-2-3-master-dev-blog-vgzaenwev) · Frontend Masters · 10 upvotes · 0 comments
- [Link \+ Popover Navigation](https://daily.dev/posts/link-popover-navigation-ojnhasllg) · Adrian Roselli · 0 upvotes · 0 comments

---

Tags: [#css](https://daily.dev/tags/css)

[View this post on daily.dev](https://daily.dev/posts/image-gallery-with-popovers-and-aim-anchor-interpolated-morph-frontend-masters-blog-pzisxo3hp)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Image Gallery with Popovers and AIM (Anchor-Interpolated Morph) – Frontend Masters Blog","url":"https://daily.dev/posts/image-gallery-with-popovers-and-aim-anchor-interpolated-morph-frontend-masters-blog-pzisxo3hp","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/image-gallery-with-popovers-and-aim-anchor-interpolated-morph-frontend-masters-blog-pzisxo3hp"},"datePublished":"2026-03-19T15:28:08.640Z","dateModified":"2026-03-19T15:28:39.454Z","description":"A walkthrough of building a JavaScript-free image gallery using the browser Popover API combined with AIM (Anchor-Interpolated Morph), a CSS technique that...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/07e6e71368e61dfc67360dbcb8d781c9?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/07e6e71368e61dfc67360dbcb8d781c9?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"Frontend Masters","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Frontend Masters","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/d34dd87208f24090bfb0917307fcf89f","url":"https://daily.dev/sources/frontendmasters"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/image-gallery-with-popovers-and-aim-anchor-interpolated-morph-frontend-masters-blog-pzisxo3hp","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"css","timeRequired":"PT6M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Frontend Masters","item":"https://daily.dev/sources/frontendmasters"},{"@type":"ListItem","position":3,"name":"Image Gallery with Popovers and AIM (Anchor-Interpolated Morph) – Frontend Masters Blog"}]}
```

