a small, simple api that shows/hides a canvas loading animation