How to give an addition assignment(+=) to a translate in JS(jQuery)?
问题 My expectation is to set the addition assignment operator( +=/-= ) to the transform: translateX() , but have no idea how would I do this. I've tried some ways to do this: $('.inline-grid').css({transform: 'translate(+= 4%, 0)'}) $('.inline-grid').css({transform: 'translate(''+=' + '4' + '%', 0')'}) $('.inline-grid').css({transform: "translate("+=" + "10" + "%", 0)"}) $('.inline-grid').css({transform: '+=' + 'translateX(4%)'}) $('.inline-grid').css({transform: '+=translateX(4%)'}) but none of