There is a code that is responsible for switching the slider. Need to create a smooth animation, how can this be done? Here is the code:
$(e.target).parent().parent().find('.content-slider').css({ 'transition': '.3s ease-out', 'left': function (index, value) { if (parseFloat(value) === -540) { return value = 0; } return parseFloat(value) - 270 + 'px'; } });