JSFiddle - React, Tailwind, and code Playground

HTML

<script src="http://modernizr.com/downloads/modernizr-latest.js"></script>
<div></div>

CSS

div {
  width:300px; height: 50px;
  background: black;
    left:300px;
}

JavaScript

$(function () {

	var transform = Modernizr.prefixed('transform'),
			transition = Modernizr.prefixed('transition'),
	    style1 = {},
	    style2 = {};
	    
	style1[transform] = "translate(100px, 20px)";
	style1[transition] = "none"; 
	style2[transform] = "translate(500px, 50px)";
	style2[transition] = "2s"; 

	$('div')
		.on('click', function () {
			$(this)
				.css(style2);
		});
    
});