I can get the below code working when I don't use the variable. When I add the variable it breaks though.
$('.right, .auto_slide').click(function() {
var slider_margin = parseInt($(this).closest('.slider').css('transform',"translateX"));
var new_margin = slider_margin - pane_width;
$(this).closest('.slider').css('transform',"translateX("+new_margin"+)");
});
HTML
<section class="stage" id="basic">
<div class="slider" style="transform: translateX(0px);">
<!-- Content -->
</div>
</section>