Hideing an svg via javascript

To hide the svg, all I need to do is add this code, and that’s it, right?

After you click on it it hides.


`hide(wrapper.querySelector(".link"));`

Code:

  function hideInitialOverlay(wrapper) {
    wrapper.classList.remove("inactive");
    wrapper.classList.add("active");
    hide(wrapper.querySelector(".link"));
    hide(wrapper.querySelector(".cover"));
  }

That seems to do it.

1 Like

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.