Hi,
I have come far enough with what I wanted to do for carousal effect. Initially wasn't using throwProps plugin but I decided to use it. Following is the snippet that controls snap
function snapX(x){
console.log(Math.round(x / boxWidth) * boxWidth);
return Math.round(x / boxWidth) * boxWidth;
}
The issue is, on resize slides start snapping at wrong place. This is the first time I am using ThrowProps and snap. From what I have found so fa
Hi @Sahil
I think you might be overthinking some of the demos I made. Updating the progress using a draggable proxy should give you a clue how to update a slide without dragging. Just tween the proxy div, and update the slider progress using the onUpdate callback.
The resize could use a little work. Maybe by keeping track of the current slide, but see if this helps out.
See the Pen ?editors=0010 by osublake (@osublake) on CodePen