Add a mouseover to make move my progress bar -JS

Viewed 27

My code is not working, i'm trying to make move the color inside my progress bar with a "mouseover" event but it's not working :

const myProgressAnim=document.getElementById('#Progress_Status');
myProgressAnim.addEventListener("mouseover",progressBar);

function progressBar(event){
  const myProgressElm=document.getElementById('#myprogressBar');
  document.myProgressElm.style.widht='100px';
  document.myProgressElm.style.backgroundColor="red";
  document.myProgressElm.style.color='black';
}
0 Answers
Related