MagneticButtons
MagneticButtons copied to clipboard
Does not detect multiple buttons
Hello. When the html button is duplicated and placed elsewhere in the html code, it doesn't work because it only detects one. The code is not prepared to have multiple buttons in the same html. How do I implement that? I think it would be a nice improvement.
Same here. Not able to use it like that. Anyone found a solution yet?
Just add on your JS your new class after :
var button = new _buttonCtrl.default(document.querySelector('.button')); line 6443