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

Disable animation in "Fast draw" #134

Open
LourencoVazPato opened this issue Aug 25, 2021 · 2 comments
Open

Disable animation in "Fast draw" #134

LourencoVazPato opened this issue Aug 25, 2021 · 2 comments

Comments

@LourencoVazPato
Copy link

Hi, first of all thank you @inker for sharing this project.

I'm trying to simulate locally many different draws to estimate group probabilities.

The main bottleneck I'm finding are the animations in "Fast draw".
Is there any way to disable them to allow for faster sims?

Thanks in advance

@inker
Copy link
Owner

inker commented Aug 25, 2021

@LourencoVazPato

Currently, the only way to disable transitions is by patching the code manually.

  1. Open the browser's dev tools. For Chrome, it's Option + ⌘ + J (on macOS) or Shift + CTRL + J (on Windows/Linux).
  2. Go to the 'Console' tab.
  3. Type the following:
const s = document.createElement('style');
s.textContent = 'body * { transition: none !important }';
document.head.append(s);
  1. Press 'Enter'

(Close the dev tools)
Transitions are gone.

I might add an option to disable all UI in the future.

@poleselfg
Copy link

I can work in this feature if you want!

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

No branches or pull requests

3 participants