Sort

Curving Animation

Options

Curve is an optional object that currently supports 2 options:

Points - an integer of how many points to calculate from the start XY values
Default:

5



Start - an array that holds the starting XY coordinates of the curve
Default:

[0,0]

Code

YUI().use('gallery-yuisand', function(Y) {

	Y.one('#sort').on('click', function(e) {	
		new Y.YUISand({
			duration	: 1500,
			curve		: {
				points	: 2,
				start	: [-50,500]
			}
		});
		e.preventDefault();
	})

})