Refresh resets the instructed javascript css properties


function changeBackground() 
  document.getElementById('videoplayer').style.display = "none";
  document.getElementById('noAnimation').style.display = "none";
  document.getElementById('Animation').style.display = "block";


function displayAnimation() 
  document.getElementById('videoplayer').style.display = "block";
  document.getElementById('noAnimation').style.display = "block";
  document.getElementById('Animation').style.display = "none";
<button id="noAnimation" onclick="changeBackground()">Stop Animation</button>
<button id="Animation" onclick="displayAnimation()">Start Animation</button>



Source link

Leave a Reply

Your email address will not be published.

Previous Article

In 16 weeks, the Dolphins open the 2022 NFL regular season vs. the New England Patriots

Next Article

Mohamed Salah pips Liverpool teammate Trent Alexander-Arnold to Premier Player Playmaker of the Season award

Related Posts