IanLunn/Sequence

[Feature] Usage of HTML5 data-* attributes for options

andrepereiradasilva opened this issue · 0 comments

A feature i think would be very useful for server side implementations would be to allow the usage of HTML5 data-* attributes to set the options directly in the HTML (without external or inline js), for instance:

<div id="sequence" data-key-navigation="1" data-auto-play-interval="500">
<!-- additional code removed for brevity -->
</div>

Or

<div id="sequence" data-options='{"keyNavigation":1,"autoPlayInterval":500}'>
<!-- additional code removed for brevity -->
</div>