This is a simple jQuery plugin used to create a horizontal or vertical clicking scroll menu. It’s lightweight, simple and easy to customize as needed.
<div id="yourContainer">
<ul>
<li>A list item</li>
<li>Another list item</li>
<li>Another list item</li>
<li>Etc...</li>
</ul>
</div>
<a id="#clickscroll-more" href="#">More</a>
<a id="#clickscroll-less" href="#">Less</a>
#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;
}
$(function(){
$('#yourContainer').clickScroll();
});
This is how you could setup a horizontal scroller using all the options, like in the demo
$('#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
});
You’ll also want to change you CSS so the list elements are floated or inline-block…
jScrollHorizontalPane is a plugin based off of Kevin Luck’s jScrollPane which override’s the browsers…
I was finishing up some tedious work around midnight a few days ago and decided I needed to code something fun. I have…
For the new threeformed site I am using WordPress as a light CMS, so I wanted to treat some ‘special’ posts d…
This is a simple jQuery plugin used to create a horizontal or vertical clicking scroll menu. It’s lightweight, s…
This is the home of the GrooveControl Firefox 4 plugin.
This plugin is fantastic! I’ve been search long and hard for a vertical news scroll with manual navigation. Many examples have autoscrolls that make it too confusing for some.
It would be good to see the ‘more’ link as a boolean too
I plan use also have an excerpt under the headline with a maximum number of characters followed by ‘… Read More’. Is this possible?
Thanks again for the plugin – I’ll be trying it out 1st thing tomorrow.
I’m just playing about with the plugin – really liking it.
Is there a way I can get each scroll to ‘lock’ on to the 4 list items? i.e. so we dont see a cutt-off part of the next page’s list item?
Thanks
I would like both the ‘more’ and ‘back’ buttons to be always visible — not hidden when you are at the beginning or end of the list. Is this possible to change?
@Camila: I have updated the plugin to include a “autoHideNav” boolean option. Just set it to false, and the ‘more’ and ‘back’ button will ramin in place, but just be disabled when the scrolling is at the beginning or end of the list. Check out the option in action on the horizontal example in the demo.
The clickscroller plugin seems to be disabling the preloading effects I have in my navigation. Could this be a problem with the javascript?