changed TR animation stuff into a minor mode