Examples

Gallery of examples with combination of DPiCSS parameters and images formats

Olivier 3lanc

Table of content
  1. Display an animated AVIF
  2. Add content to details
  3. Responsiveness
  4. Reveal an image
  5. Display a GIF
  6. Display a WEBP

Display an animated AVIF

AV1 image format works perfectly with DPiCSS.

Add content to details

DPiCSS uses details tag as primary holder, you can off course add any content after or before the picture tag as follows. Into this example, the animated AVIF image file is encoded with -loop 1, this means that it keep the last frame as still image once played.

Responsiveness

DPiCSS is just a CSS library based on HTML5, picture tag manages perfectly the responsiveness just like the following example:

Reveal an image

DPiCSS can be used as an UI to unmask an image.

Display a GIF

Use DPiCSS to simply display a GIF on click on a thumbnail.

Display a WEBP

Use DPiCSS to simply display an animated WEBP on click on a thumbnail.