Contents

element::age

Returns the current age of the element in seconds.

Declaration

float element::age()

Return Value

The age in seconds since the element was created

Discussion

Use this function to determine how long the element has existed, which is useful for time-based effects and animations.