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

[Spinner] Избавиться от анимации с png #2182

Closed
zhzz opened this issue Oct 26, 2020 · 0 comments · Fixed by #2203
Closed

[Spinner] Избавиться от анимации с png #2182

zhzz opened this issue Oct 26, 2020 · 0 comments · Fixed by #2203

Comments

@zhzz
Copy link
Member

zhzz commented Oct 26, 2020

Spinner и SpinnerOld представляют из себя анимированные SVG. И там есть fallback-и для IE, потому что он не поддерживает css-анимацию нужных свойств svg. Сделаны они с помощью движущегося png-спрайта.

Это приводит к необходимости загружать эти спрайты и, следовательно, к тем же проблемам, что описаны в #2181.

import fallbackImage_mini from './fallback_circle_mini.png';
import fallbackImage_mini_dimmed from './fallback_circle_dimmed.png';
import fallbackImage_big from './fallback_circle_big.png';
import fallbackImage_normal from './fallback_circle_normal.png';

Но, т.к. сами svg-картинки в IE работают нормально, можно переделать fallback на анимацию их нужных свойств js-ом, избавившись от этих картинок.

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

Successfully merging a pull request may close this issue.

1 participant