Hideing an svg via javascript


#1

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:
https://jsfiddle.net/subdo9at/73/

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

#2

That seems to do it.


#3

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