javascript - when to stop scrolling -
Look at the demo below. Scroll it by clicking on next but I want to hide the next edge when reaching the end. How do I know when to scroll
JS
$ ("span") click (function () {$ ('span '' ($ '' Div.demo ") [0] .scrollWidth + '-' + $ (" div.demo ") .scrollLeft () + '-' + $ ("Div.demo p") [0] .scrollWidth); $ ("div.demo"). Value ({scrollLeft: $ ("div.demo") .scrollLeft () + 800});});
ps: 800 demo is easily
After completion, a function
$ ('selector'). Animate ({true: "100px",}, 500, function () {$ ('selector'). / It will run after the animation is completed});
Comments
Post a Comment