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

Animated SVGs in Image Tags - Bugfix #4941

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

lzudor-omnitech
Copy link

URL(s):
https://codepen.io/dr_cube/pen/gOqqXpa?editors=1000

  • or check tests/scrollspy.html
  • load the page (in Incognito mode)
  • wait 1-2 secods
  • scroll down
  • all images should be animating; some of them will be stuck & stopped in Chromium-based browsers

Issue:

  • animated SVGs, included in IMG tags stop animating when used w/ scroll (actual issue reported by SVGator customer)
  • the issue is present due to animated CSS class removed w/ a temporization from JS
  • given code triggers & forces a repaint of svgs included in image tags when the animated CSS class is removed

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

Successfully merging this pull request may close these issues.

None yet

1 participant