Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/itemconsulting/popover-gallery

Custom component for creating a progresively enhanced gallery based on links to larger images
https://github.com/itemconsulting/popover-gallery

Last synced: about 2 months ago
JSON representation

Custom component for creating a progresively enhanced gallery based on links to larger images

Awesome Lists containing this project

README

        

# Custom component for animating opening an image link in a popover

[![npm version](https://badge.fury.io/js/@itemconsulting%2Fpopover-gallery.svg)](https://badge.fury.io/js/@itemconsulting%2Fpopover-gallery)

A custom elements that replaces links to images with buttons that opens that image in a popover.

## Usage

Register the custom element with JavaScript.

```javascript
import PopoverGallery from "@itemconsulting/popover-gallery";

if (!window.customElements.get("popover-gallery")) {
window.customElements.define("popover-gallery", PopoverGallery);
}
```

Use the custom element to wrap a set of images in links.

```html





```