Example of layer slider switching with the ArcGIS API for JavaScript
Used for the WCRC flood hazard scenarios tool. The slider filters the flood hazard model scenarios from S1-15.
Live demo here: https://nzjs.github.io/westport-hazard-scenario-switcher/