2012-09-09, [Tobias Otte]
dragend.js is a touch ready, fully responsive, content swipe script. It has no dependencies but it can, doesn't have to, be used as a jQuery plugin.
The current version is 0.2.0 release candidate 3
<div id="demo">
<div class="dragend-page"></div>
<div class="dragend-page"></div>
</div>
$("#demo").dragend(options);
new Dragend(document.getElementById("demo"), options);
You can call the dragend method a second time to trigger some actions. When you want to go to a page when you click on a link you could do something like this:
$("#container").dragend();
$("#my-link").on("click", function() {
$("#container").dragend({
scrollToPage: 2
});
});
instead of scrollToPage you can use jumpToPage to get to a page without a animation. Or
$("#container").dragend("left");
to swipe left or right.
Call the destroy method to unbind the events and reset the styles
var instance = new Dragend();
instance.destroy();
2013-1-17 0.2.0_rc3 release
Changes:
2013-09-30 0.2.0_rc2 release
Changes:
2013-06-14 0.2.0_rc1 release
Changes:
2013-06-14 0.1.3 release
Changes:
2013-05-25 0.1.2 release
Changes:
2013-05-02 0.1.1 release
2013-04-21 0.1.0 release
2012-09-9 0.1.0 beta release
2012-08-12 0.1.0 alpha release
2012-08-04 Creation
Copyright (c) 2012 Tobias Otte
Licensed under MIT License:
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.