Created an #Eleventy plugin to zoom images on fullscreen.

When hovering, the magnifying glass indicates to the user that the img can be enlarged. A click and it appears enlarged, through a fade-in animation. A click outside the image quit the enlarged view.

Under the hood, a #VanillaJS inserts `<dialog>` #HTML modal right before the image. Outside of the modal click =`dialog` disappears.
Styled via #CSS `@starting-style`.

https://www.npmjs.com/package/eleventy-plugin-img-magnifier

@eleventy @zachleat

#11ty #builtwith11ty

eleventy-plugin-img-magnifier

zoom image to fullscreen. Latest version: 1.0.0, last published: 22 minutes ago. Start using eleventy-plugin-img-magnifier in your project by running `npm i eleventy-plugin-img-magnifier`. There are no other projects in the npm registry using eleventy-plugin-img-magnifier.

npm
@eleventy @zachleat now supporting the newly `closedby="any"` attribute that allows native light dismiss on `<dialog>`, progressive enhancement for browsers not supporting it
#Eleventy #HTML #WebDev #IndieWeb #11ty #BuiltWith11ty