inker / draw

⚽ Champions League draw simulator
https://inker.github.io/draw/
228 stars 67 forks source link

Disable animation in "Fast draw" #134

Open LourencoVazPato opened 3 years ago

LourencoVazPato commented 3 years ago

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 commented 3 years ago

@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);
  4. Press 'Enter'

(Close the dev tools) Transitions are gone.

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

poleselfg commented 2 years ago

I can work in this feature if you want!