add updated code for drop animation