Skip to content

Frameright/image-display-control-demo-irregular-shapes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

 

Demo of Image Display Control with Irregularly Shaped Image Containers

➡️ Live version of this demo is available at https://irregular-shapes-demo.frameright.io.

The demo is just a single static HTML file, which can be opened locally in the browser. The source contains configuration for Five Server for development hot-reloading, but it or any other tooling is not needed.

This demo shows how you can combine Image Display Control with irregularly shaped image containers.

The demo is intended for modern browsers. See our Developer portal for polyfills for older browsers.

Not all containers are rectangles. IDC metadata can be used to fit image assets into any desired shape. By using IDC metadata regions, you can define the specific region of the image that will be displayed and you choose which region to show in different situations. You can define as many regions as needed.

Toggle between the IDC and mobile view buttons to see how the image behaves with and without the IDC metadata. You can also test it with your own images by following the steps below:

  1. Open an image file in Frameright.
  2. Use the irregular shapes definitions: Common sizes > Frameright Demo > Irregular Desktop/Mobile Left/Right.
  3. Save the file.
  4. Locate the file in your downloads folder and drag and drop it onto the left or right image area.

Learn more