Best solution for set a custom animated spinner as default spinner


#1

Hi,

I am using $ionicLoading for showing loading spinner but the graphic designer has made a custom spinner for my app, and i don’t find in the doc a way to set a custom spinner. What is the best format, SVG animated ? How can i set this for my app ?

thanks in advance !


#2

Nobody has the same need? I’m not lucky :frowning:


#3

I solved my problem with animated svg. I made a .svg with the animate properties and load them in the $ionicLoading like this :

$ionicLoading.show({
  template: '<object data="assets/so-spinner.svg" type="image/svg+xml"></object>',
  animation: 'fade-in',
  showDelay: 0
});