animate ({}); !!!

animate ({}); !!!

how make this work ?

var direction = "left";
$(".slider").animate({ direction : "10px" });