Answers for "javascript change css opacity duration"

0

javascript change css opacity duration

var opacity = 0;

function MyFadeFunction() {
   if (opacity<1) {
      opacity += .1;
      setTimeout(function(){MyFadeFunction()},100);
   }
   document.getElementById('about').style.opacity = opacity;
}
Posted by: Guest on October-14-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language