IanLunn / Sequence

The responsive CSS animation framework for creating unique sliders, presentations, banners, and other step-based applications.
http://sequencejs.com
Other
3.37k stars 488 forks source link

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

Open andrepereiradasilva opened 8 years ago

andrepereiradasilva commented 8 years ago

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>