Skip to content

Synchronized timers #1

@a-guerrero

Description

@a-guerrero

Synchronize timers if a selector (with multiple elements) is played.

// Let's say foo has three elements. 
var foo = document.getElementsByClassName('foo');
var surf = Surf(foo);

// Reverse first element.
surf[0].reverse();

// Play all elements with the same timer.
surf.play({ timeout: 8000 });

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions