/adapt-before-and-after

Adapt component that reveals an image's before and after state

Primary LanguageJavaScriptGNU General Public License v3.0GPL-3.0

adapt-before-and-after

This component is used to reveal an image's before and after states of itself.


Adapt Before and After Component

Usage

Press and hold on the circular button while moving left and right to reveal the image's before and after states. This component is also accessible. When in accessible mode press tab to navigate to the circular button. Then use the right and left arrow keys to reveal parts of the image. The images have shared alt tag to describe them.

Use the example.json to see how the Component works.