Chocolat on github

## Full window, contain, click the numbers to open:

1 2 3

## Full window, cover, looping :

C D

## Display in a container, cover, with thumbnails :

## Display in a container, looping :

A B C

## API use, in container, see code source
Open console to have details abouts events

Open then try
Next Prev
Enter cover mode / Enter contain mode
Close

## Usage with srcset and sizes attributes. Full window, contained.

Be careful while using "cover" and data-sizes="100vw", the image could be wider than the viewport width.