Jquery Tools Scrollable Reverse Direction

Jquery Tools Scrollable Reverse Direction 3,5/5 7760votes

Scroll 4 Matteo Spinellis Cubiq. Scroll finally received a complete rewrite. Now its smoother than ever and adds some new important features pinchzoom, pull down to refresh, snap to elements and more custom events for a higher level of hackability. Project info. Last code update 2. Device compatibility i. Overview. iScroll 4 is a complete rewrite of the original iScroll code. The script development began because mobile webkit on iPhone, iPad, Android does not provide. PhoneIpod touch 3. Pad 3. 2, Android 1. Desktop Webkit, Firefox, Opera desktopmobile. Pic-2-6-1024x545.png' alt='Jquery Tools Scrollable Reverse Direction' title='Jquery Tools Scrollable Reverse Direction' />Discussion group. QR Code opens demo page. Support development. If this script saved your day and you wish to support future developments you may consider sending some funds via Pay. Pal or Flattr. Overviewi. Scroll 4 is a complete rewrite of the original i. Scroll code. The script development began because mobile webkit on i. Phone, i. Pad, Android does not provide a native way to scroll content inside a fixed widthheight element. Issuu is a digital publishing platform that makes it simple to publish magazines, catalogs, newspapers, books, and more online. Easily share your publications and get. This unfortunate situation prevents any web app to have a position absolute header andor footer and a scrolling central area for contents. While latest Android revisions are supporting this functionality although support is not optimal, Apple seems reluctant to add one finger scrolling to divs. In addition to all previous i. Scroll features, version 4 introduces Pinch Zoom. Pull updown to refresh. Improved speed and momentum. Snap to element. Customizable scrollbars. Leaflet Plugins. While Leaflet is meant to be as lightweight as possible, and focuses on a core set of features, an easy way to extend its functionality is to use. A complete collection of 250 jQuery CSS3 Hover Effects Plugins Tutorials to help you create rich and dynamic websites. Please note that i. Scroll 4 is not a drop in replacement for i. Scroll 3. The APIs have changed. Also consider that the script is still in beta, and some APIs may slightly change. Getting startedSimple example. In the archive youll find plenty of examples to get you started. Before asking for help, please, look at the demos and read through all this document. I know its boring, but it holds all the secrets of the i. Scroll Ninja. i. Scroll needs to be initialized for each scrolling area you need. Theres no limit to the number of i. Scrolls you can have on any single page, if not that imposed by the device memorycpu. The type and length of the contents influence the number of i. Scrolls you can use simultaneously. Try to keep the DOM structure as simple as possible, remove all the unnecessary tags and avoid too many nested elements. The optimal i. Scroll structure is. In this example the UL element will be scrolled. The i. Scroll must be applied to the wrapper of the scrolling area. Important only the first child of the wrapper element will be scrolled. If you need more elements inside the scroller you may use the following structure. In this example the scroller element will be scrolled together with the two ULs. Scroll be must instantiated ie called for the first time when the DOM is ready. You have mainly four options on. DOMContent. Loaded eventon. Load eventinline, place the code below the html bit you want to scrollon. DOMContent. Loaded. If you have only text and all images have fixed dimensions ie explicit widthheight you may use the DOMContent. Loaded event. In the document HEAD add. Scroll new i. Scrollwrapper. Event. ListenerDOMContent. Loaded, loaded, false. Note that the my. Scroll variable is global, so that you can access all the scroller functions from anywhere. Load. Sometimes the DOMContent. Loaded is a bit hasty and get fired when the contents are not ready. If you slip into some weird behaviors eg rubber band effect, try the following. Timeoutfunction. Scroll new i. Scrollwrapper. Event. Listenerload, loaded, false. In this case i. Scroll is started only 1. This is probably the safest way to call the i. Scroll. Inline initialization. With this method the i. Scroll is instantiated as soon as the wrapper and its contents are written to the page. I wouldnt suggest this approach, but I see many javascript gurus using it so who am I to disagree First of all include the iscroll. HEAD and then create the i. Scroll object just below the scroller. Scroll new i. Scrollwrapper. Alternatively you may use your preferred framework ready function eg jquery ready. Passing parameters to the i. Scrolli. Scroll behavior can be customized with the optional second parameter. Eg. lt script typetextjavascript. Scroll new i. Scrollwrapper, h. Scrollbar false, v. Scrollbar false. The second parameter is always an object. In the example above the scroller wont show the scrollbars. The most common options you will use are h. Scroll, used to disable the horizontal scrolling no matter what. By default you can pan both horizontally and vertically, by setting this parameter to false you may prevent horizontal scroll even if contents exceed the wrapper. Scroll, same as above for vertical scroll. Scrollbar, set this to false to prevent the horizontal scrollbar to appear. Scrollbar, same as above for vertical scrollbar. Scrollbar, on i. OS the scrollbar shrinks when you drag over the scroller boundaries. Setting this to true prevents the scrollbar to move outside the visible area as per Android. Default true on Android, false on i. OS. fade. Scrollbar, set to false to have the scrollbars just disappear without the fade effect. Scrollbar, the scrollbars fade away when theres no user interaction. You may want to have them always visible. Default true. bounce, enabledisable bouncing outside of the boundaries. Default true. momentum, enabledisable inertia. Default true. Useful if you want to save resources. Direction, when you start dragging on one axis the other is locked and you can keep dragging only in two directions updown or leftright. You may remove the direction locking by setting this parameter to false. Tips to preserve resources try to remove the scrollbars hv. Scrollbar option. Pull to refreshPull to refresh demo. This feature has become famous thanks to the Twitter app and many other native applications on the Apple Store. You can watch a preview in this screencast. Ive recently removed the pull to refresh from the script core and replicated the same functionality as an external plugin. Please have a look at the included example to get an idea of how it works. All you have to do is to customize the pull. Down. Action function. Youll probably need an ajax call that loads new contents, remember to call the refresh method once the new data is attached to the DOM. Also please note that the example adds a 1 second delay to simulate network congestion. Of course you dont want it in production, so remember to remove the set. Timeout. Pinch ZoomZoom example. How To Install Rafters On A House. Lets face it scrolling is boring. Thats why i. Scroll 4 lets you also zoom in and out. By setting the zoom option to true the scroller reacts to pinchzoom gestures. Believe your eyes if you dont believe me. Double tap to zoom inout is also supported. The minimum setup to activate zooming is var my. Scroll new i. Scrollwrapper, zoom true. You may further customize the zoom behavior with the following option zoom. Max, this is the maximum allowed scale. Defaulted to 4, it means 4 times the original size. Tip to have good looking zoomed images place them into the hardware compositing layer. Or to speak in plain English apply webkit transform translate. Important hardware acceleration takes a lot of resources, use it sparingly or your app will just crash. Dont say I didnt warn you. Snap and snap to elementCarousel demo. The snap feature locks the scroller to predefined positions. This can be used to create fancy carousels. By default i. Scroll subdivides the scroller into quadrants or pages of the same size of the wrapper.