set_current_time method

set_current_time

Adjusts the clock for this SVG document fragment, establishing a new current time. If setCurrentTime is called before the document timeline has begun (for example, by script running in a ‘script’ element before the document’s SVGLoad event is dispatched), then the value of seconds in the last invocation of the method gives the time that the document will seek to once the document timeline has begun.

def set_current_time(self, seconds):
    ...
ParameterTypeDescription
secondsfloatThe new current time in seconds relative to the start time for the current SVG document fragment.

See Also