I'm working on making a mobile menu button and I want it to rotate 90 degrees and then disappear but I can't seem to figure out how to get it to work.
I tried using .animate() for the rotation and then a callback that used hide() but that didn't work.
My latest code looks like:
$('.menuButton').click(function() {
$(this).css('transform', 'rotate(90deg)');
setTimeout( function() {
$(this).css('opacity', '0');
}, 1000);
});//end click
<div class="menuButton"></div>
Thank you in advance.