src/ImageComparison.js
function incrementPosition() {
            comparison._animateInterval = setInterval(function () {
                currentPositionInPercent++;
                comparison._updatePosition(currentPositionInPercent);
                if (currentPositionInPercent >= newPositionInPercent) {
                    setFinalPositionAndClearInterval();
                }
            }, 10);
        }
function incrementPosition() {
            comparison._animateInterval = setInterval(function () {
                currentPositionInPercent++;
                comparison._updatePosition(currentPositionInPercent);
                if (currentPositionInPercent >= newPositionInPercent) {
                    setFinalPositionAndClearInterval();
                }
            }, 10);
        }
function incrementPosition ( ) { comparison . _animateInterval = setInterval ( function ( ) { currentPositionInPercent ++ ; comparison . _updatePosition ( currentPositionInPercent ) ; if ( currentPositionInPercent >= newPositionInPercent ) { setFinalPositionAndClearInterval ( ) ; } } , 10 ) ; }
Support animate functions
Support animate functions