Modifying jQuery Parallax Slider for infinite scroll

Hi All,

I’m working with the following script Parallax Slider with jQuery | Codrops and am having trouble revising it. Currently, when the final image is called it will scroll ALL the way back to the initial image. I’m looking for an infinite scroll, where image 0 will simply slide in succession without returning back to the beginning.

I believe this is my issue:


$pxs_next.bind('click',function(){
	        ++current;
		if(current >= total_elems)
			if(o.circular)
			        current = 0;
			else{
				--current;
				return false;
			}



Thanks in advance!