set animation duration, repeat count and set animation to start on shake or push