Control the visibility of the spinner using built-in spin.js methods instead of hiding the parent element.