Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Icon is not animating correctly #361

Open
lorenzofiamingo opened this issue Feb 21, 2025 · 2 comments
Open

Icon is not animating correctly #361

lorenzofiamingo opened this issue Feb 21, 2025 · 2 comments

Comments

@lorenzofiamingo
Copy link

lorenzofiamingo commented Feb 21, 2025

Environment

Version

v3.0.0-alpha.12

Reproduction

Jusy load the animated icon anywhere in a page.

For example:

<Icon name="line-md:loading-twotone-loop" />

Description

The issue occurs both when I run the app in development mode and when I build it for production. I tested it on Safari (Mac and iPhone) and Chrome (iPhone only). On the first page load, the animation works fine, but when I reload the page, the animation stops. However, when the component where it is used updates, the icon state changes (still without animation).

Here I placed some icons randomly in the pages to show the problem and when it occurs:

Registrazione.schermo.2025-02-21.alle.14.33.09.mov

).

@cyberalien
Copy link

Add mode="svg" to fix it.

When animated icon is rendered as background or mask image, animation timer starts the first time icon is rendered and is never reset. I've reported that as bug to Chromium devs a while ago, they closed issue as working as intended, so they aren't fixing it.

@lorenzofiamingo
Copy link
Author

@cyberalien Thank you very much for your response. This should be mentioned in the documentation if it isn’t already.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants