简体   繁体   中英

How to use animated material ui icons in React

https://material.io/design/iconography/animated-icons.html我在上面附加了链接,如何在我的反应应用程序中集成图标没有任何代码。

I think it is not supported out of the box by material-ui, but you can use css transitions to accomplish it.

Maybe this lib can solve it for you or at least inspire your implementation?

https://mui.wertarbyte.com/#material-ui-toggle-icon

Their implementation looks pretty nice, well documented and MIT: https://github.com/TeamWertarbyte/material-ui-toggle-icon

Google Material does not provide an implementation of their icons with animations. They do; however, provide a specification/guideline for animation with Material Icons.

In addition; you can download the SVG Icons here as needed: https://material.io/tools/icons/ and import into your code.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM