Skip to content

Latest commit

 

History

45 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Progressive Enhancement Recipes using Eleventy WebC Image Comparison Components

A bunch of examples of progressively enhanced server-rendered image comparison web components using WebC.

This component expects two images to be nested inside and will produce a input type range to let the user compare the two images by dragging the range slider.

Examples

  1. Always Enabled: form control is interactive pre-JS and synchronizes post-JS.
  2. Disabled until JavaScript: uses JS to toggle the range input from disabled to enabled.
  3. Hidden via :not(:defined) CSS
  4. Hidden via JS <template>
  5. Declarative Shadow DOM
  6. :has() and Radios
  7. Bonus: opacity Slider

About

Server rendered image comparison web components built using WebC

Resources

Stars

8 stars

Watchers

1 watching

Forks

Sponsor this project

Contributors

Languages