onDestroy callback added.
Work into animation demo.