function animateHelloworld() {
  document.querySelector('#hello-world').style.display = "block";
  document.querySelector('#button').style.display = "none";
}#hello-world {
  display: none;
}<div id="hello-world">
  Hello world
</div>
<div id="button">
  <button onclick="animateHelloworld()">press me</button>
</div>I want the div and the button fade away as I press the button thank you. I am a begginer thanks in advance :)
 
     
    