tam315/react-compare-image

Animate Slider handles

Closed this issue · 2 comments

Just wondering if anybody knew of a way to animate the slider handles when scrolled into view of the slider. Basically once you scroll into view the slider would slide to the left, then to the right and then finally go to the default sliderPositionPercentage that you set. Thanks!

@jhig85
Hi, thank you for using my component.
Unfortunately it's not possible to animate the slider position by now.
You can only set the default position of the slider.

Thanks for responding! I thought that would be the answer but wanted to check first. Really like the the component by the way. Super easy to use.