animates drawing of tree