I am using this image comparison slider (because it's the only one I found that will slide the handle to the very edge when you move the mouse fast to either side of the screen):
https://github.com/pehaa/beerslider
And I'm wondering if it's possible to dynamically change the handle position with javascript after it has been initiated (which is the only time I can set a start position)? The reason I need to do this is because I added it to a modal, and when the modal is not hidden I want the position to reset.
This is the only code I got to go by:
new BeerSlider( document.getElementById( "beer-slider" ), { start: 25 } );
Any help would be greatly appreciated!