Adds animation to toggle