added callback to animate() method, changed animation property T to O