{"id":1755,"date":"2010-11-15T10:24:58","date_gmt":"2010-11-15T10:24:58","guid":{"rendered":"http:\/\/mts-help.nick.php.dev\/after_sale_support\/jquery\/scrolls\/article3.html"},"modified":"2020-01-28T05:09:31","modified_gmt":"2020-01-28T10:09:31","slug":"scrollpane-scroll-effect","status":"publish","type":"post","link":"https:\/\/www.templatemonster.com\/help\/scrollpane-scroll-effect.html","title":{"rendered":"&#8220;ScrollPane&#8221; Scroll Effect"},"content":{"rendered":"This is a Scroll Script that allows adding add a custom horizontal scroll for extra content inside the block. <br \/> <br \/> <span style=\"font-weight: bold;\">JavaScript<\/span> <br \/>In order to make the script work, the <span style=\"font-weight: bold;\">index-#.html<\/span> file with a gallery should contain these lines of HTML code:  <br \/> <p>The <span style=\"font-weight: bold;\">ScrollHorizontalPane.js<\/span> file contains these lines of code that initialize the script functionality with basic values: <br \/><\/p> <p>Here the script attributes define the following values:<\/p> <p>\u2022&nbsp;&nbsp;&nbsp; <span style=\"font-weight: bold;\">scrollbarHeight<\/span> &ndash; the height of the generated scrollbar in pixels; <br \/>\u2022&nbsp;&nbsp;&nbsp; <span style=\"font-weight: bold;\">scrollbarMargin<\/span> &ndash; the amount of space to leave on the side of the scrollbar in pixels; <br \/>\u2022&nbsp;&nbsp;&nbsp; <span style=\"font-weight: bold;\">wheelSpeed<\/span> &ndash; the speed the pane will scroll in response to the mouse wheel in pixels; <br \/>\u2022&nbsp;&nbsp;&nbsp; <span style=\"font-weight: bold;\">showArrows<\/span> &ndash; whether to display arrows for the user to scroll with; <br \/>\u2022&nbsp;&nbsp;&nbsp; <span style=\"font-weight: bold;\">arrowSize<\/span> &ndash; the height of the arrow buttons if <span style=\"font-weight: bold;\">showArrows<\/span> is set to <span style=\"font-weight: bold;\">true<\/span>; <br \/>\u2022&nbsp;&nbsp;&nbsp; <span style=\"font-weight: bold;\">animateTo<\/span> &ndash; whether to animate when calling <span style=\"font-weight: bold;\">scrollTo<\/span> and <span style=\"font-weight: bold;\">scrollBy<\/span>; <br \/>\u2022&nbsp;&nbsp;&nbsp; <span style=\"font-weight: bold;\">dragMinWidth<\/span> &ndash; the minimum width to allow the drag bar to be; <br \/>\u2022&nbsp;&nbsp;&nbsp; <span style=\"font-weight: bold;\">dragMaxWidth<\/span> &ndash; the maximum width to allow the drag bar to be; <br \/>\u2022&nbsp;&nbsp;&nbsp; <span style=\"font-weight: bold;\">animateInterval<\/span> &ndash; the interval in milliseconds to update an animating pane (default <span style=\"font-weight: bold;\">100<\/span>); <br \/>\u2022&nbsp;&nbsp;&nbsp; <span style=\"font-weight: bold;\">animateStep<\/span> &ndash; the amount to divide remaining scroll distance by when animating (default <span style=\"font-weight: bold;\">3<\/span>); <br \/>\u2022&nbsp;&nbsp;&nbsp; <span style=\"font-weight: bold;\">maintainPosition<\/span> &ndash; whether you want the contents of the scroll pane to maintain it\u2019s position when you re-initialize it &ndash; so it doesn\u2019t scroll as you add more content (default <span style=\"font-weight: bold;\">true<\/span>); <br \/>\u2022&nbsp;&nbsp;&nbsp; <span style=\"font-weight: bold;\">resize<\/span> &ndash; whether or not to have resizing turned on or not; <br \/>\u2022&nbsp;&nbsp;&nbsp; <span style=\"font-weight: bold;\">minimumWidth<\/span> &ndash; the minimum width to allow the jScrollHorizontalPane to be resized to; only effective when resize is on; <br \/>\u2022&nbsp;&nbsp;&nbsp; <span style=\"font-weight: bold;\">reset<\/span> &ndash; when set to <span style=\"font-weight: bold;\">true<\/span> all the global properties will be reset. This is useful for dynamic refreshes on the page. <br \/><\/p> <p> <span style=\"font-weight: bold;\">HTML<\/span> <br \/>Below you can see general HTML script representation: <br \/><\/p> <p> <span style=\"font-weight: bold;\">CSS<\/span> <br \/>You can find script related stylesheet in the main <span style=\"font-weight: bold;\">style.css<\/span> file. <br \/><\/p>","protected":false},"excerpt":{"rendered":"<p>This is a Scroll Script that allows adding add a custom horizontal scroll for extra content inside the block. JavaScript In order to make the script work, the index-#.html file with a gallery should contain these lines of HTML code: The ScrollHorizontalPane.js file contains these lines of code that initialize the script functionality with basic [&hellip;]<\/p>\n","protected":false},"author":13,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[263],"tags":[813],"_links":{"self":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts\/1755"}],"collection":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/users\/13"}],"replies":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/comments?post=1755"}],"version-history":[{"count":8,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts\/1755\/revisions"}],"predecessor-version":[{"id":85746,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts\/1755\/revisions\/85746"}],"wp:attachment":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/media?parent=1755"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/categories?post=1755"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/tags?post=1755"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}