Want timeline animation to not play again when refreshing (But it should play once on first visit)
I need a code help me....
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?
scene within your HypeDoc.
on sceneload, may work:
var yourTimelineName = "xyz";
if(typeof yourCheckerBoolean == 'undefined'){
hypeDocument.startTimelineNamed(yourTimelineName, hypeDocument.kDirectionForward);
yourCheckerBoolean = 1;
}
Also timelines in a persistent symbols are also only played once even if you use the symbol only in a single scene.
thank you ^^