Canvas border - how to remove

Helo everyone.
I need help.

Look on picture below, when animation is loaded everything looks ok, but when i click on it i see a border.
How to remove that annoig border

Depending on your browser that might be an ‘outline’, not a ‘border’. Try setting something like this in your CSS: canvas { outline: none; border: none; }



I should have known, but I was convinced that three.js generates: D

In javascript can use:

document.styleSheets[0].insertRule('canvas { outline:none; border:none; }', 0); 
1 Like

Fyi. It does - related PR.