before and after animations using $.velocity()