JSFiddle - React, Tailwind, and code Playground
HTML
<div></div>
CSS
div {
height: 100px;
width:150px;
background: #f00;
margin-left:20px;
}
JavaScript
$('div').css('margin-left', function (index, curValue) {
return parseInt(curValue, 10) + 100 + 'px';
});