CodePen

HTML

            
              <div id="el" class="el"></div>

<button>Toggle all Styles</button>
            
          
!

CSS

            
              .el {
  box-sizing: border-box;
  background: CadetBlue;
  margin: 0 auto;
  transition: 4s;
  max-width: 100%;
  height: 200px;
}

button {
  margin: auto;
  display: block;
}
            
          
!
? ?
? ?
Must be a valid URL.
+ add another resource
via CSS Lint

JS

            
              $('button').on('click', function () {
  $('#el').toggleClass('el');
});
            
          
!
Must be a valid URL.
+ add another resource
via JS Hint
Loading ..................