Skip to content

Automatic transitions #219

Description

@firebus

I'd like the slideshow to run unattended. With the help of https://stackoverflow.com/questions/951021/what-is-the-javascript-version-of-sleep I kludged it in like this in slides.js:

    function sleep (ms) {
        return new Promise(resolve => setTimeout(resolve, ms));
    }

    async function transition(ms) {
        while(1) {
            await sleep(ms);
            console.log('wake up')
            nextSlide();
        }
    }

    // initialize

    (function() {
...
        transition(2000);
    })();
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions