Jump to content
GreenSock

Search In
  • More options...
Find results that contain...
Find results in...

oldschoolh

Members
  • Content Count

    1
  • Joined

  • Last visited

Community Reputation

0 Newbie

About oldschoolh

  • Rank
    Newbie
  1. Hi, I'm new at JS and would appreciate if someone could take a look how can i start the animation auto on web page load? I tried to implement trigger at the end but it did not work. $(tTog).trigger("click"); I think this is the key part of code: $(tTog).on('click', function(e) { e.preventDefault(); $(this).toggleClass('inTo'); if ($(this).hasClass('inTo')) { fullIn.progress(0); fullIn.restart(); } else { fullIn.reverse(); } }); All code: var sun = $("#sun_3_"), cloud1 = $("#cloud1"), cloud2 = $("#cloud2"), cloud3 = $("#cloud
×