therufa / mdi-vue

Material design icons for vue.js
https://www.npmjs.com/package/mdi-vue
MIT License
88 stars 13 forks source link

any props to make the loader spinning? #38

Closed rheddi02 closed 4 years ago

rheddi02 commented 4 years ago

as the title says, or maybe I just don't know what to put to make it spinning. Thank you

therufa commented 4 years ago

hi @rheddi02, I'm not sure if i can follow you on this. which icon do you mean by this. Also, please keep in mind, that this library only provides svg icons.

Maybe you're looking for something like these spinners https://github.com/Saeris/vue-spinners?

cheers!

NomNes commented 4 years ago

@therufa I think @rheddi02 means the "spin" property for adding animation to any icon (like FA icons)

therufa commented 4 years ago

@NomNes thanks, that's actually a great idea for a feature. i'll give it some thought

therufa commented 4 years ago

@rheddi02 so, if what you meant with this was what @NomNes is suggesting, then v1.5.0 should be having this feature. Just add the spin property to the desired icon, and it will make it spin around. The spin property is a boolean value, which defaults to false.

<CogIcon spin />

or:

<CogIcon :spin="true" />

I hope this does the job. Thanks to you both!