Loop in Google Web Designer Tool

68 views
Skip to first unread message

Rakesh MK

unread,
Jun 8, 2018, 6:43:03 AM6/8/18
to Google Web Designer beta
Hi Guys,

How to Control animation Google Web Designer total animation have 6 sec  so it will repeat 5 times in 5th time timeline should be end 3 sec please can any one suggest urgent
 

San Khong

unread,
Jun 8, 2018, 1:18:18 PM6/8/18
to Google Web Designer beta
Hi Rakesh,

What you want to do is to add a global variable and initialize it to 0. On the ready to present the page event, check if the counter is less than 5, then go back to the page. At the end of the check, have the animation to go the timeline label at 3 sec.

You can learn how to do this by looking at my blog post here. One additional thing you need to do is to add the following code at the end of the custom actions:
gwd.actions.timeline.gotoAndPause('page1', 'threeSec');
where threeSec is your timeline label at 3sec and page1 is your page.

Please let me know if you have any question.

Hope it helps.
San
Google Web Designer team
Reply all
Reply to author
Forward
0 new messages