Want timeline animation to not play again when refreshing?

Want timeline animation to not play again when refreshing (But it should play once on first visit)

I need a code help me....

do you mean a browserrefresh (aka second+ load) or a second visit of a scene within your HypeDoc?

1 Like

scene within your HypeDoc.

on sceneload, may work:

var yourTimelineName = "xyz";

if(typeof yourCheckerBoolean == 'undefined'){

    hypeDocument.startTimelineNamed(yourTimelineName, hypeDocument.kDirectionForward);
    yourCheckerBoolean = 1;
}
3 Likes

Also timelines in a persistent symbols are also only played once even if you use the symbol only in a single scene.

4 Likes

thank you ^^