JScroll
iScroll plugin for jQuery
Install / Use
/learn @ddmnet/JScrollREADME
jScroll - An iScroll plugin for jQuery
jScroll is an iScroll plugin for jQuery. It works by attaching id's to any elements in the wrapper set that don't have them, and then attaches iScroll. It also keeps track of the iScroll instances in a global array, so that they can be unset easily in single-page applications (think PhoneGap apps). By default, it also uses native iOS 5+ scrolling if it's available.
How to use jScroll
Include iScroll in the header (or footer).
<script type='text/javascript' src='iscroll.js'></script>
Include jScroll in the header (or footer).
<script type='text/javascript' src='jScroll.js'></script>
Attach to elements.
$(".myelement").jScroll(); //Uses the default options.
$("p").jScroll({ //With overidden options
lockDirection : false,
fadeScrollbar : true
});
$("#aDiv").jScroll("remove"); //Removes iScroll from all elements in this set.
$("div").jScroll({ //Adds pinch to zoom functionality on this div.
zoom : true
});
Available Options and their defaults
hScroll : true
vScroll : true
hScrollbar : true
vScrollbar : true
fixedScrollbar : false
fadeScrollbar : true
hideScrollbar : true
bounce : true
momentum : true
lockDirection : false
forceIscroll : false
zoom : false
useTransition : false //Performance mode!
Related Skills
node-connect
343.1kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
90.0kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
343.1kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
343.1kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
