Attempt to fix header animation jank on li elements