Materialdesign: Loading Icon

Created on 16 Feb 2017  路  12Comments  路  Source: Templarian/MaterialDesign

Hi!

I lack of loading icon. Something to add spinning animation and create quick and simple loader, for example, inside button or input.

I've already created an svg. Here you can find it: https://drive.google.com/drive/folders/0B5grXaOjT059Wld6U2xEbUJ1ODA?usp=sharing

Examples of use:

kapture 2017-02-16 at 9 16 31
kapture 2017-02-16 at 9 20 20
kapture 2017-02-16 at 9 22 48

Thank you!

Contribution Icon Request

Most helpful comment

If that were the worst thing IE was guilty of, I'd be a very happy man!

All 12 comments

loading

Keeping this opened until I have the SCSS updates in for mdi-spin.

Done mdi-spin will be in the next release. It works like font awesome.

Cool! Thanks!

For anyone that finds it useful, a spinner is really easy to make with pure CSS. https://jsfiddle.net/41w39g95/

And, just to add to the collection, here's a Material-style SVG: https://jsfiddle.net/petershaggynoble/jk9eejaa/

Yep, these are probably the recommended way, but these loader spin should work as a quick replacement for those coming from font awesome. 馃樃

Actually I find it useful when using to replace icons in the text field or button. As quick inline loading indication

Very nice to use with React like this:

const searchTextField = (
  <TextField
    leftIcon={loading ? <Icon spinning type="loading" /> : <Icon type="search" />}
    placeholder="Search..."
    value={search}
    onChange={this.handleSearch}
  />
);

Of course, for page (or section) loader there are much better options :)

Just as a mention, the only issue with @PeterShaggyNoble solution is that the is no support for IE animations on SVG elements. Support discussed here: http://caniuse.com/#feat=svg-smil

If that were the worst thing IE was guilty of, I'd be a very happy man!

Done mdi-spin will be in the next release. It works like font awesome.

@Templarian Which commit was it added in? I can't seem to find it.

@md5 It was added to the build tools, it will be visible in the next release in the dist repo here. Please track #1891 for the release of v1.9.xx.

Great icon, thanks!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

vishnu1991 picture vishnu1991  路  3Comments

adambiggs picture adambiggs  路  3Comments

ButchMonkey picture ButchMonkey  路  3Comments

EdricChan03 picture EdricChan03  路  3Comments

danielhickman picture danielhickman  路  3Comments