How to stop Animation Loop in HTML5 Banner

I have a scene I created that starts and repeats in reverse, and that is looping forward and back perfectly fine. The issue I am having is that I need the entire animation to stop at 15 seconds no matter where it is in the cycle. What is the best way to go about this?

Thank you,
Paul

When your animation starts, launch a new timeline called ‘15 seconds’ — the only thing you need at the end of this timeline as a timeline action, is a JavaScript function that pauses any running timeline. So if you are only using the main timeline for your main animation, it needs this line at the 15s mark:

hypeDocument.pauseTimelineNamed('Main Timeline')

(Just add any other potentially playing timelines here as new lines as well)