Skip to content

enhance-dev/enhance-example-image

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

enhance-example-image

A simple example Enhance application demonstrating Enhance Image.

Usage

  1. Clone the repo
  2. Install dependencies: npm install
  3. Start the local development server: npm start
  4. Open the application at localhost:3333

An example image is rendered using Enhance Image. Below, the current viewport width will be logged, as well as the current image source. When starting from a narrow viewport and resizing wider, the current image source will update based on the sizes attribute (see example-image.mjs). When starting from a wide viewport and resizing narrower, the current image source will not update, so as to avoid needless network requests.

About

Example use of Enhance Image

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published