jerel / ember-cli-loading-slider

A YouTube like loading indicator for EmberJS packaged as an Ember CLI add-on.
MIT License
116 stars 36 forks source link

Start the expanding animation immediately #9

Closed mlalic closed 9 years ago

mlalic commented 9 years ago

The expanding animation would start only after the first speed milliseconds have expired, after which it might already be too late for it to start (i.e. the action completes in less than speed milliseconds). Waiting for the animation to start once isLoading is detected to be true makes it feel very laggy too, especially when relying on the default speed (1000).

This PR changes the expanding animation to start immediately when isLoading changes to true.