Skip to content

Example of using a range input and CSS mask to compare two images positioned on top of each other.

Notifications You must be signed in to change notification settings

nonsponsored/image-compare

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

Image Compare

Details

  • Example of using a range input and CSS mask to compare two images positioned on top of each other.
  • JavaScript is only used to pass the range value to a CSS variable that controls the position of the masks.
  • Works on touch devices.

Considerations

  • ::-moz-range-thumb and ::-webkit-slider-thumb weren't used to style the range handle, since styling options are limited.

About

Example of using a range input and CSS mask to compare two images positioned on top of each other.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages