Html ScrollView

Bind to the pageChanged event by type: jqxScrollView. Author: http://jqwidgets.com

by jqwidgets

HTML

<link rel="stylesheet" href="https://jqwidgets.com/public/jqwidgets/styles/jqx.base.css">
<script src="https://jqwidgets.com/public/jqwidgets/jqx-all.js"></script>
<link rel="stylesheet" href="https://jqwidgets.com/public/jqwidgets/styles/jqx.energyblue.css">
<div id="view">
    <div style="color: white; background: blue;">Item 1</div>
    <div style="color: white; background: red;">Item 2</div>
</div>

JavaScript

$('#view').jqxScrollView({
    width: 300,
    height: 250,
    buttonsOffset: [0, 0]
});
$('#view').bind('pageChanged', function (event) {
    alert("The page has been changed" );
});