Added animated option for the accordion

Hopefully the diff is ok this time