zurb / twentytwenty

jQuery Plugin to Compare Images
ISC License
1.27k stars 295 forks source link

Class based configuration #35

Closed kostasx closed 7 years ago

kostasx commented 9 years ago

Configuration settings (orientation, default_offset_pct) can now be set directly from the HTML container element using HTML5 data attributes.

<div class="twentytwenty-container" data-orientation="vertical" data-default_offset_pct="0.6">
raphaeleidus commented 7 years ago

@kostasx This is no longer mergable but I like the idea, if you are interested in reimplementing on top of the new code, I would be happy to merge it, but for now I am going to close this PR