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
you can you simple swith the class on click
$('.myclassname').on('click', function(){ $('.myclass h2').toggleClass( 'first_class', 'second_class'); });