Requirements: button extension
Buttons extension fixes the play() method to check the data-dir attribute (see previous example) and the data-stay attribute (see below). The core code requires the play() to stop before changing speed, no such limitation here. This extension also brings methods right() and pause(), see next example.