This function adds a rotated class to my button when I click it. The button has an arrow on it which points in the direction the panel has slid.
rotated
How co
if($('#btnDiv').hasClass('rotated')){ $('#btnDiv').removeClass('rotated') }else{ $('#btnDiv').addClass('rotated') }