fix popAnimation bug and add more demo code