When trying the animate within toggle, it always slides from left to right by default.
How can I slide from right to left?
$("#subcontainer").toggle("slow", function(){       
    $('#subcontainer').delay(1000, function(){
        $(".innercontainer").animate({
            marginLeft: parseInt($(".innercontainer").css('marginLeft'),10) == 0 ?
                $(".innercontainer").outerWidth() : 0
        });
    });
});
 
     
     
     
    