<aside> ℹ️
Link: https://etx-scripts.s3.us-west-2.amazonaws.com/ETX-torus-widgets/image-comparison-slider/index.html
⚠️ Reminder: Only enter in READ ONLY
</aside>
topImageURL
****is the image that appears on the left of the slider.bottomImageURL
is the image that appears on the right of the slider.Here’s what a configured Image Slider looks like!
Feature | Status |
---|---|
Keyboard | ✅ |
Screen Reader | ✅ |
Touch | ✅ |
Scenario | CAPI |
---|---|
Can set where the slider is positioned initially (if you want the position to be different on a new screen) | stage.slider.startingPosition Number = |
This has to be the same value as the startingPosition |
stage.slider.currentPosition Number = |
Scenario | CAPI |
---|---|
Can check if the slider was moved by the user | stage.slider.userModified Boolean = true |
Checks if the position of the slider was moved from its starting position | stage.slider.currentPosition Number != 50 |
Checks if the position of the slider was moved to the right end | stage.slider.currentPosition Number > 50 |
Checks if the position of the slider was moved to the left end | stage.slider.currentPosition Number < 50 |
Scenario | CAPI |
---|---|
Can check if the slider was not moved by the user | stage.slider.userModified Boolean = false |
Checks if the position of the slider was not moved from its starting position | stage.slider.currentPosition Number = 50 |
Checks if the position of the slider was not moved to the right end | stage.slider.currentPosition Number < 50 |
Checks if the position of the slider was not moved to the left end | stage.slider.currentPosition Number > 50 |
Scenario | CAPI |
---|---|
Moves the slider to reveal the image on the left | stage.slider.currentPosition Number = 100 |
Moves the slider to reveal the image on the right | stage.slider.currentPosition Number = 0 |