Search.../

next( )

Moves to the next item.

Description

The next() function returns a Promise that is resolved when the next item is completely rendered. Calling next() when on the last item moves to the first item.

Notes:

Authorization

Request

This endpoint does not take any parameters

Response Object

Fulfilled - The newly displayed image or slide.

Returns an empty object.

Status/Error Codes

Related Content:

Was this helpful?

Move to the next item

Copy Code
1$w("#myElement").next();
Move to the next item and log a message when done

Copy Code
1$w("#myElement").next()
2 .then( () => {
3 console.log("Finished moving to the next item");
4 } );