JSFiddle - React, Tailwind, and code Playground by Muhammad Tanzil July 31, 2016 HTML <input type="checkbox" id="create-login-button" role="button"> <div id="create-login-group" class="hideMe"> Some text is here </div> <div> more content </div> CSS .hideMe { height:0px !important; border:none !important; overflow:hidden; } #create-login-group { -webkit-transition:all 0.4s ease; transition: all 0.4s ease; border: 2px solid #000; height: 100px; width: 150px; } JavaScript $( "#create-login-button" ).change(function() { $('#create-login-group').toggleClass("hideMe", 100); });