When one setTimeout in Javascript is not enough

Member

mark.berge

by mark.berge , in category: JavaScript , a month ago

When one setTimeout in Javascript is not enough 😁

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
setTimeout(()=>{

  $('.arrowDashed, .OG1ficon, .OG1LeaderLeft, .OG1LeaderRight').css({'transition':'1s', 'opacity':'1'});
  map.opacity.inside([1,0,0], 1);

  setTimeout(()=>{
    map.animate.og1Results(50, 2);
    $('#anotherIdToCall6').css({'transition':'1s', 'opacity':'1'})

    setTimeout(()=>{
      map.opacity.main([1,1,0], 1)
      $('.IGTopContestWrap').css({'transition':'0s', 'opacity':'0'});
      $('.IGBottomContestWrap').css({'transition':'0s', 'opacity':'0'});
    },650)

  }, 1250)

}, 100)


Facebook Twitter LinkedIn Telegram Whatsapp Pocket

no answers