showing results for - "javascript change css opacity duration"
Alessandro
11 Jun 2018
1var opacity = 0;
2
3function MyFadeFunction() {
4   if (opacity<1) {
5      opacity += .1;
6      setTimeout(function(){MyFadeFunction()},100);
7   }
8   document.getElementById('about').style.opacity = opacity;
9}
10