I need to add a delay to .addClass and .removeClass for 200ms
here:
jQuery('.class').hover(() => jQuery('#custom').addClass('addedclass'), () => jQuery('#custom').removeClass('addedclass'));
I tried this example jQuery: Can I call delay() between addClass() and such? but the structure there is slightly different.