<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>threeformed // a blog &#187; jQuery</title>
	<atom:link href="http://threeformed.com/blog/tag/jquery/feed/" rel="self" type="application/rss+xml" />
	<link>http://threeformed.com/blog</link>
	<description></description>
	<lastBuildDate>Fri, 18 Feb 2011 20:00:24 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>jQuery ClickScroller Plugin</title>
		<link>http://threeformed.com/blog/jquery-clickscroller-plugin/</link>
		<comments>http://threeformed.com/blog/jquery-clickscroller-plugin/#comments</comments>
		<pubDate>Tue, 23 Feb 2010 01:15:51 +0000</pubDate>
		<dc:creator>Jeff</dc:creator>
				<category><![CDATA[jQuery]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[jQuery Plugin]]></category>

		<guid isPermaLink="false">http://threeformed.com/blog/?p=28</guid>
		<description><![CDATA[<p>This is a simple jQuery plugin used to create a horizontal or vertical clicking scroll menu. It&#8217;s lightweight, s&#8230;</p>]]></description>
			<content:encoded><![CDATA[<p>This is a simple jQuery plugin used to create a horizontal or vertical clicking scroll menu. It&#8217;s lightweight, simple and easy to customize as needed.</p>
<h3>1. Setup</h3>
<ul>
<li>Download <a href="http://jquery.com/" target="_blank">jQuery</a>, and add it into the head of your document</li>
<li>Download the <a href="http://www.threeformed.com/labs/clickscroller/jquery.clickscroller.js" target="_blank">ClickScroller package</a>, and add jquery.clickscroller.js into the head of your document</li>
<li>Optionally, <a href="http://gsgd.co.uk/sandbox/jquery/easing/" target="_blank">grab the easing js</a> (is included with the download package)</li>
</ul>
<h3>2. Write Some HTML</h3>
<pre><code>&lt;div id="yourContainer"&gt;
	&lt;ul&gt;
		&lt;li&gt;A list item&lt;/li&gt;
		&lt;li&gt;Another list item&lt;/li&gt;
		&lt;li&gt;Another list item&lt;/li&gt;
		&lt;li&gt;Etc...&lt;/li&gt;
	&lt;/ul&gt;
&lt;/div&gt;
&lt;a id="#clickscroll-more" href="#"&gt;More&lt;/a&gt;
&lt;a id="#clickscroll-less" href="#"&gt;Less&lt;/a&gt;</code></pre>
<h3>3. Write some CSS</h3>
<pre><code>#yourContainer {
	height: 300px; /* REQUIRED FOR VERTICAL SCROLLING */
	width: 500px; /* REQUIRED FOR HORIZONTAL SCROLLING */
	overflow: hidden; /* DO NOT REMOVE */
	position: relative; /* DO NOT REMOVE */
}
#yourContainer ul {
	list-style: none;
	padding: 0;
	margin: 0;
	position: absolute;	/* DO NOT REMOVE */
}
#yourContainer ul li {
	padding: 0;
	margin: 0;
}</code></pre>
<h3>4. Write some Javascript (well jQuery)</h3>
<pre><code>$(function(){
	$('#yourContainer').clickScroll();
});</code></pre>
<h3>4. Customize</h3>
<p>This is how you could setup a horizontal scroller using <strong>all the options</strong>, like in the <a href="http://www.threeformed.com/labs/clickscroller/index.html">demo</a></p>
<pre><code>$('#yourContainer-horizontal').clickScroll({
	speed: 1000, // Scroll Speed
	easing: 'easeOutElastic', // Animation easing method
	lessBtn: '#scroll-left', // Custom ID of scroll button
	moreBtn: '#scroll-right', // Custom ID of scroll button
	btnFadeSpeed: 500, // Speed of button fading in/out when not end of scrolling is reached
	horizontal: true // Make it scroll Horizontally,
	autoHideNav: false // Don't hide the navigation controls automatically
});</code></pre>
<p>You&#8217;ll also want to change you CSS so the list elements are floated or inline-block&#8230;</p>
<h3>Other Notes</h3>
<ul>
<li>The plugin relies on an unordered list &lt;ul&gt; and list items &lt;li&gt; to be children of the container, if you use something else, it won&#8217;t work.</li>
<li>When horizontally scrolling, the width of the list will be automatically calculated and applied. If you&#8217;re changing the widths of list items dynamically, you might have to get creative in the source.</li>
<li>Don&#8217;t add your control links into the container.</li>
</ul>
<h3>Changelog</h3>
<ul>
<li>&#8220;autoHideNav&#8221; option added for control over navigation controls being automatically hidden/shown.</li>
</ul>
<h3><a href="http://www.threeformed.com/labs/clickscroller/jquery.clickscroller.js" target="_blank">Download</a></h3>
<h3><a href="http://www.threeformed.com/labs/clickscroller/index.html">Demo</a></h3>
]]></content:encoded>
			<wfw:commentRss>http://threeformed.com/blog/jquery-clickscroller-plugin/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>

