We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Feature request
https://www.chromatic.com/docs/animations/ - Chromatic has functionality to pause animations, along with options to change how they're paused.
However, this doesn't work for animations within open shadow roots.
Proposed solution
Assuming that Chromatic gets animations via document.getAnimations(), you can get shadow roots via:
document.getAnimations()
function getAllDeepShadowRoots(root: Element) { const els = [...root.querySelectorAll('*')]; const shadowRoots: ShadowRoot[] = []; for (const el of els) { if (!el.shadowRoot) continue; shadowRoots.push(el.shadowRoot); els.push(...el.shadowRoot.querySelectorAll('*')); } return shadowRoots; }
And call getAnimations() on the shadow roots too.
getAnimations()
I couldn't find where Chromatic actually implements this.
The text was updated successfully, but these errors were encountered:
@jakearchibald this is implemented on Chromatic's cloud infrastructure and not in the CLI. I'll pass this on as a feature request.
Sorry, something went wrong.
No branches or pull requests
Feature request
https://www.chromatic.com/docs/animations/ - Chromatic has functionality to pause animations, along with options to change how they're paused.
However, this doesn't work for animations within open shadow roots.
Proposed solution
Assuming that Chromatic gets animations via
document.getAnimations()
, you can get shadow roots via:And call
getAnimations()
on the shadow roots too.I couldn't find where Chromatic actually implements this.
The text was updated successfully, but these errors were encountered: