here is the code: http://jsfiddle.net/duNHJ/2/
Basically there is an animations every div so when I click next or prev slider that animation script shoud run only when activated div. Currently it animates all of them at the beginning.
using http://www.malsup.com/jquery/cycle/
Also how can add active class on activated div?
I wasn’t too sure what you wanted with regards to your first concern, however with regards to adding/remove an active state class, see the following example:
http://jsfiddle.net/duNHJ/27/