JSFiddle - React, Tailwind, and code Playground

HTML

<script src="http://code.jquery.com/jquery-1.3.2.js"></script>
<button id="toggle">Toggle</button>

<div class="tumble bounce spin"></div>

CSS

div  {
    width: 100px;
    height: 100px;
    background: red;
}

.blue {
    background: blue;
}

.small {
    height: 20px;
}

JavaScript

$('#toggle').click(function() {
    $('div').toggleClass('blue').toggleClass('small');    
});