Skip to content

pass argument ms from started into tick (interval) #301

@xaota

Description

@xaota

when interval is started, tick called in first time with zero
every tick call - time argiment increment by timeout (maybe perfomance.now())

usage

sample({ clock: tick, filter: time > 1e4, target: stopAnimation })

reference: https://developer.mozilla.org/en-US/docs/Web/API/window/requestAnimationFrame (callback argument)

Metadata

Metadata

Assignees

No one assigned

    Labels

    RFCSome new feature that should be discussed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions