Home › Forums › CSS › [Solved] CSS animated menu won't work on iphone and ipad › Reply To: [Solved] CSS animated menu won't work on iphone and ipad
February 11, 2015 at 11:00 am
#195633
Shikkediel
Participant
I’d be add/changing classes rather than directly affecting CSS
Quoting @Paulie_D in another topic with a good suggestion. So here’s an adaptation of the earlier pen – more CSS and slightly leaner script :
Pen variation add and remove class
Although in this case an id would be slightly more correct :
$(this).find('.test1').attr('id', 'active1');
$(this).find('.test1').removeAttribute('id');