<divid="container"> <divclass="sections"> <divclass="section"id="section0"><h3>this is the page0</h3></div> <divclass="section"id="section1"><h3>this is the page1</h3></div> <divclass="section"id="section2"><h3>this is the page2</h3></div> <divclass="section"id="section3"><h3>this is the page3</h3></div> </div> </div> <scriptsrc="./jquery.min.js"></script> <scriptsrc="../dist/pageSwitch.min.js"></script> <script> $("#container").PageSwitch({ direction:'horizontal', easing:'ease-in', duration:1000, autoPlay:true, loop:'false' }); </script>