jQuery thumbnail scroller
A cool jquery/css thumbnail scroller plugin inspired by the ones made in Flash. It works by cursor movement or next/previous buttons, has auto-scrolling feature and it’s simple to configure and style through css.
How to use it
In order to implement the plugin, you first need to insert inside the head tag of your document the jquery.min.js (load it from Google CDN), the jquery-ui-1.8.13.custom.min.js (a custom build jQuery UI for custom animation easing) and the jquery.thumbnailScroller.css which is the file where you can style your scroller(s).
<link href="jquery.thumbnailScroller.css" rel="stylesheet" type="text/css" /> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.5/jquery.min.js"></script> <script src="jquery-ui-1.8.13.custom.min.js"></script>
Next you’ll need to insert the markup of the thumbnail scroller with your images and links inside the body tag. The structure of the markup is exactly the same for every scroller instance. You can use class names e.g. .jThumbnailScroller or you can add a unique id for using multiple, different type scrollers on the same page.
<div id="tS2" class="jThumbnailScroller">
<div class="jTscrollerContainer">
<div class="jTscroller">
<a href="#"><img src="thumbs/img1.jpg" /></a>
<a href="#"><img src="thumbs/img2.jpg" /></a>
<a href="#"><img src="thumbs/img3.jpg" /></a>
<a href="#"><img src="thumbs/img4.jpg" /></a>
<a href="#"><img src="thumbs/img5.jpg" /></a>
</div>
</div>
<a href="#" class="jTscrollerPrevButton"></a>
<a href="#" class="jTscrollerNextButton"></a>
</div>
The final step is to include the actual thumbnail scroller plugin (jquery.thumbnailScroller.js) and the function that calls and configures the scroller(s) at the end of your document, just before the closing body tag. We also add jQuery.noConflict(); for using the plugin along with other libraries (e.g. prototype, scriptaculous etc.). thumbnailScroller function selector can be id, class, tag name etc. (in this example the id of the .jThumbnailScroller div in the markup above).
<script>
jQuery.noConflict();
(function($){
window.onload=function(){
$("#tS2").thumbnailScroller({
scrollerType:"hoverPrecise",
scrollerOrientation:"horizontal",
scrollSpeed:2,
scrollEasing:"easeOutCirc",
scrollEasingAmount:600,
acceleration:4,
scrollSpeed:800,
noScrollCenterSpace:10,
autoScrolling:0,
autoScrollingSpeed:2000,
autoScrollingEasing:"easeInOutQuad",
autoScrollingDelay:500
});
}
})(jQuery);
</script>
<script src="jquery.thumbnailScroller.js"></script>
You can configure each scroller by setting the parameters of the function call as options
Options parameters
scrollerType: String |
Scroller type based on mouse interaction, values: "hoverPrecise"(default) "hoverAccelerate" "clickButtons" |
scrollerOrientation: String |
Scroller orientation, values: "horizontal"(default) "vertical" |
scrollEasing: String |
Scroll easing type only for hoverPrecise type scrollers See jquery UI easing for all available easing types |
scrollEasingAmount: Integer |
Scroll easing amount only for hoverPrecise and clickButtons type scrollers (0 for no easing). Example: scrollEasingAmount:800 |
acceleration: Integer |
Acceleration value only for hoverAccelerate type scrollers, default: 2 |
scrollSpeed: Integer |
Scrolling speed only for clickButtons type scrollers, values: milliseconds, Example: scrollSpeed:600 |
noScrollCenterSpace: Integer |
Scroller null scrolling area only for hoverAccelerate type scrollers (0 being the absolute center of the scroller and the default value), values: pixels |
autoScrolling: Integer |
Initial auto-scrolling (0 equals no auto-scrolling and the default value), values: amount of auto-scrolling loops |
autoScrollingSpeed: Integer |
Initial auto-scrolling speed, values: milliseconds, Example: autoScrollingSpeed:8000 |
autoScrollingEasing: String |
Initial auto-scrolling easing type See jquery UI easing for all available easing types |
autoScrollingDelay: Integer |
Initial auto-scrolling delay for each loop, values: milliseconds, Example: autoScrollingDelay:2500 |
Multiple scrollers
To set multiple scrollers with different style and features on a single page, give them a unique id and add a function call for each one. For example:
<script>
(function($){
window.onload=function(){
$("#tS2").thumbnailScroller({
scrollerType:"clickButtons",
scrollerOrientation:"horizontal",
scrollSpeed:2,
scrollEasing:"easeOutCirc",
scrollEasingAmount:600,
acceleration:4,
scrollSpeed:800,
noScrollCenterSpace:10,
autoScrolling:0,
autoScrollingSpeed:2000,
autoScrollingEasing:"easeInOutQuad",
autoScrollingDelay:500
});
$("#tS3").thumbnailScroller({
scrollerType:"hoverPrecise",
scrollerOrientation:"vertical",
scrollSpeed:2,
scrollEasing:"easeOutCirc",
scrollEasingAmount:800,
acceleration:4,
scrollSpeed:800,
noScrollCenterSpace:10,
autoScrolling:0,
autoScrollingSpeed:2000,
autoScrollingEasing:"easeInOutQuad",
autoScrollingDelay:500
});
}
})(jQuery);
</script>
You can style all and each scroller separately in jquery.thumbnailScroller.css.
Scrolling long content
There’s a bug in jquery.min.js that resets to 0, an animate value greater than 9999 pixels. This bug will affect the scroller if content width or height is equal or greater than 10000 pixels, resulting a scrolling jerk. This annoying bug is going to be fixed on a future release of the library. Until then, we need to come up with a temporary solution and since editing jquery.min.js is not the best of practices, we’ll overwrite the jquery function containing the buggy code ![]()
Insert the following code below the window load function:
<script>
/* function to fix the -10000 pixel limit of jquery.animate */
$.fx.prototype.cur = function(){
if ( this.elem[this.prop] != null && (!this.elem.style || this.elem.style[this.prop] == null) ) {
return this.elem[ this.prop ];
}
var r = parseFloat( jQuery.css( this.elem, this.prop ) );
return typeof r == 'undefined' ? 0 : r;
}
</script>
Check the multiple scrollers demo to see all type of scrollers in action. The image thumbnails used in the demos are the work of Alex Varanese (http://www.alexvaranese.com).
Changelog
- Oct 8, 2011
- Changed anchors css display property to block and added float:left; (instead of display:inline-block;) to avoid extra whitespace between thumbnails
- May 30, 2011
- Plugin is greatly upgraded by the addition of new features and updated to be conflict-proof with other js libraries and scripts by changing css class names, thumbnailScroller function calling, jquery.thumbnailScroller.js and by adding
jQuery.noConflict();
Added 2 more scrolling types (3 total): an additional scrolling via mouse movement and a new scrolling type via next/previous buttons. The 3 types of scroller are: “hoverPrecise”, “hoverAccelerate” and “clickButtons”
Added auto-scrolling feature
- Plugin is greatly upgraded by the addition of new features and updated to be conflict-proof with other js libraries and scripts by changing css class names, thumbnailScroller function calling, jquery.thumbnailScroller.js and by adding
- Feb 23, 2011
- Automatically setting content width for horizontal scrollers is no longer calculated via javascript. Instead of using jQuery .each() or for statements, the width is now set by adding an additional div (.horWrapper) that wraps content and by setting the display of .container div to inline, thus expanding its width automatically (check the updated css file for details)
- Jan 1, 2011
- Modified the plugin to scroll images with different widths horizontally
- Nov 29, 2010
- Created a plugin out of the original script for easy implementation, configuration and multiple scrollers on a single page
Minor code fixes and enhancements
- Created a plugin out of the original script for easy implementation, configuration and multiple scrollers on a single page
- Nov 26, 2010
- Fixed an issue with the vetical fixed-size scroller (scroller didn’t get the correct offset value). The solution was pointed by Peter Ambroz
- Oct 18, 2010
- Brad Mace added some code to increase the left and right margins of the thumbnail scroller in order to be easier to get the first and last thumbnails all the way on the screen, without having to move the mouse to the very edge. Script updated
thanks Brad!
- Brad Mace added some code to increase the left and right margins of the thumbnail scroller in order to be easier to get the first and last thumbnails all the way on the screen, without having to move the mouse to the very edge. Script updated
License
You are free to use, study, improve and modify this script wherever and however you like.
All works are licensed under GNU General Public License, GNU Lesser General Public License or Creative Commons Attribution 3.0 Unported License.
Donating helps greatly in developing and updating free software and running this blog :)
Thanks for the script
do i need to delete some code?
having a problem with the script..
It loads and works fine.. however some of my other scripts stop working.. (Prettyphoto)
Wondering if there is a way to get them to work together?
hi.
I find this plugin very good, and started some test to implement it on my web site.
My thumbnails are all in same size (i.e 80×105).
Im using the scroller with “clickButtons” type.
Initial state is that i show 3 of them side by side inside a . and it looks good (same margings both sides..
When I click the NEXT buttom few times, and thumbnails are scrolling, after a few scrolls to the same direction i lose the position of the thumbnails, i.e. i see “half” of thumb in the left, and half of thumb in right.
My problem/question is:
How you can controll the x-axis px movement amount ?
ty
Hi Malihu and thanks for your great plugin(s)!
I’m trying to use jquery thumbnail scroller from inside a tab switcher. All is well when the tab containing the scroller is visible on page load; but if the page opens on another tab, since visibility is 0, jquery thumbnail scroller initializes with a height of 0.
I believe I would need to issue a re-initialize command to the jquery thumbnail scroller when its tab is shown. Is there a simple way to do that? (see http://elricoshow.com)
Thanks!
Thanks..
Hi,
The thumbnail scroller works great on Firefox and chrome. But not in IE. When I hover over the images, instead of scrolling the whole div “jtscroller” shifts all the way out. Looking at the html in developer tools, everytime I hover the inline style “left” is a huge negative number.
How do I fix this? I was able implement it without any issues in other browsers.
Thanks
Aruna
Exactly what i was looking for. Thanks for sharing this info.
Hi there! Can it be that the demo’s are no longer functional?
Thanks for the script! Very good.
HI, nice script so I have ui-1.10.1 for my website and not able to use this? is it my mistake or script is not fit for that version of jquery? is there anybody who knows? many thanks
Hi, thanks its really a great script!
Is it possible to set the cklick buttons (arrows) outside the pictures. So that they appear left and right next to the pictures instead at top of the pictures?
For this i think the tags have to be outside of the “jTscrollerContainer” div but then the js has to be changed:
var $scrollerNextButton=$this.children(".jTscrollerNextButton"); var $scrollerPrevButton=$this.children(".jTscrollerPrevButton");because then the buttons aren’t children anymore …
but i don’t know how to do this.
thanks for your help
There is a problem with web kit based browsers, not fully load the thumbnails, to update and loaded all updates again if not fully charged. This sucks. do not fix it since 2011.
Existe un problema con navegadores basados en web kit, no carga completamente las miniaturas, al actualizar cargan todas y si nuevamente se actualiza no carga completa. Esto apesta. no arreglan esto desde el 2011.
Your plugin is great! I wanted you to know that I believe someone has been selling you plugin as there own. http://codecanyon.net/item/thumbnail-scroller-wordpress-plugin/2068683
I just wanted to help you protect what is yours.
I had to modify it somewhat to allow the use of external elements as controls. The external elements of choice can now be set in the initial call.
Oringinal
var defaults={ //default options scrollerType:"hoverPrecise", //values: "hoverPrecise", "hoverAccelerate", "clickButtons" scrollerOrientation:"horizontal", //values: "horizontal", "vertical" scrollEasing:"easeOutCirc", //easing type scrollEasingAmount:800, //value: milliseconds acceleration:2, //value: integer scrollSpeed:600, //value: milliseconds noScrollCenterSpace:0, //value: pixels autoScrolling:0, //value: integer autoScrollingSpeed:8000, //value: milliseconds autoScrollingEasing:"easeInOutQuad", //easing type autoScrollingDelay:2500 //value: milliseconds }; var options=$.extend(defaults,options); return this.each(function(){ //cache vars var $this=$(this); var $scrollerContainer=$this.children(".jTscrollerContainer"); var $scroller=$this.children(".jTscrollerContainer").children(".jTscroller"); var $scrollerNextButton=$this.children(".jTscrollerNextButton"); - var $scrollerPrevButton=$this.children(".jTscrollerPrevButton");Changed to
var defaults={ //default options scrollerType:"hoverPrecise", //values: "hoverPrecise", "hoverAccelerate", "clickButtons" scrollerOrientation:"horizontal", //values: "horizontal", "vertical" scrollEasing:"easeOutCirc", //easing type scrollEasingAmount:800, //value: milliseconds acceleration:2, //value: integer scrollSpeed:600, //value: milliseconds noScrollCenterSpace:0, //value: pixels autoScrolling:0, //value: integer autoScrollingSpeed:8000, //value: milliseconds autoScrollingEasing:"easeInOutQuad", //easing type autoScrollingDelay:2500, //value: milliseconds nextButton:'#next', prevButton:'#prev', }; var options=$.extend(defaults,options); return this.each(function(){ //cache vars var $this=$(this); var $scrollerContainer=$this.children(".jTscrollerContainer"); var $scroller=$this.children(".jTscrollerContainer").children(".jTscroller"); var $scrollerNextButton=$(options.nextButton); var $scrollerPrevButton=$(options.prevButton);Great plugin!
Hoping you might have a solution for touch screens…??
Right now I’m developing version 2.0 of the plugin which will support touch-devices via touch-swipe scrolling (for iOS, Android, Microsoft tablets etc.).
Hi there.
I did love this scroller until I found an awful bug. When you use the browser zoom, it totally breaks. Is there a way around this?
This happens on webkit browsers (known issue). I’ll fix it on the next plugin version.
What browser does it break in? What do you mean by break? Does it work if you reload. I can’t duplicate it. I tried in IOS (double tap) and it was fine. Are you talking about the command + zooming?
Thanks!
Hi, I appreciate your work. It is very useful.
But one thing I would suggest is: is it possible to make a scroller work if we change the width of jScrollerController in runtime? It is more flexible. I.e. developers can add more photos, or remove them as they like.
Hi and thanks a lot for the feedback!
Next version will have many features regarding dynamic elements, such as adding/removing images and scrollers on-the-fly. I’m planning on making this plugin extremely flexible with user defined option parameters for each feature, callback functions, scroll-to method, thumbnail titles & descriptions etc.
I’ll also make it really easy to implement by making all plugin markup generate automatically.
At the moment I’m upgrading few image galleries (which is very time consuming) so I’ll probably publish the new version in 3 or 4 weeks.
Hi Malihu,
Great plugin by the way. Tell me, will the upgraded plugin be responsive too? I’m finding that my websites plugins are needing to be upgraded making way for more and more tablet and smartphone usage. (responsive, touch, swipe etc)
Next version will fully support touch devices.
Do you have an updated ETA for the new version?
Early May (in about 2 weeks).
Hi,
I have 60 images and was wondering what controls the width of the scroll on the “on click” version.
For instance if I set the width to 1022 px, does the scroller scroll 1022 px when I click the next button?
By the way, excellent job on this!
Yes, the scroll amount is the scroller’s visible width.
We are looking forward to use your thumbnals-scroller plugin in JSF (JavaServer Faces). This is exactly what I need currently, but we need a new version (you mentioned in the last post) as soon as possible. Please post here a link when it’s finished. Thanks.
I’ll try to include and publish at least the basic upgrades & features (better scrolling functions, touch support, dynamic elements etc.) as soon as possible.
Basic functionality is fine.
One question yet. Can images be loaded lazy? We have thumbnails which are loaded from a backend system dynamically. The loading takes some time. I would like to show placeholders first and load images when they are coming into the view (visible area). That mean, they will be loaded when scrolling. Is it possible with your plugin?
Thanks for your effort! Looking forward.
I think you would need to give images a fixed width/height and call thumbnailScroller function on document ready (instead of window load). I’ll try to implement an automatic way of lazy-loading images on the next version.
i have error in chrome and safari. when i resized the window only works in firefox and explorer… i read some fix in this page but. not resolve my problem.??? you can view this bug in the demo (this page) resized and view the error.. (chrome)… some fix for this? help
on hoverAccelerate
I’ll try to update the script with an updated hoverAccelerate function within the next week. Thanks for the feedback.
Thanks Malihu! your are great bro!
you can tellme when you finish? Reply this or sendme a email =).. or only update in the page, i still monitoring…. happy holidays y new year
I’m reading almost every comment before I finish a new plugin version in order to include users requests etc., so I’ll probably also reply here when done.
Happy holidays
Awesome script! Thank you!
I was wondering if I wanted to hide the container of jThumbnailScroller, how do I make the script work when the container is hidden? Right now I’m hiding the container after setting scroller options inside window.onload function.
If I try to hide the container before the thumnailScroller function, it doesn’t work properly,
Thanks!
I love these plugins. Well done Malihu. And thank you!
Just a quick question on the thumbnail scroller…. you mentioned on a previous reply back in July (2012) that the next iteration of the plugin should support touchscreen “swipe” – i.e. to enable the thumbnail scroller to work by users swiping the gallery.
Do you have an idea when the next iteration may be released….?
I have had a play with your full-screen gallery (with thumbnails) and added an automated “timed slideshow” element to the script so when someone presses “play” it hides everything but the fullscreen picture and the “play/pause” button… works very well actually!
The icing on the cake would be getting the thumbnail scroller to work on touchscreens… this would be one hell of a fullscreen gallery if we could get this working! All thanks to you!
Regards,
Chris
Hi Chris and thanks for your comments
If everything goes well, next version will be released within January. I’m currently finishing a big update on the fullscreen image gallery that’ll have the touch-swipe support. I’ll publish the gallery update very soon (within the next couple of days).
You can take a sneak-peek of the scroller here (please note that this link is beta and will probably change as I’m testing all kinds of stuff there).
Hi, is it possible to join a lightbox?
The scroller plugin is great. However, it does not work with twitter bootstrap modal window. Any suggestion in tweaking css to make it work?
Hi, this plugin is amazing!
I want to use it in my WordPress website, but when I put
into
sorry,it’s this script into :
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.5/jquery.min.js"></script> into<head></head>Hello,
A really good and stylish plugin, good work.
I use the plugin for text and I would like to know how I can get the height to be dynamic.
Right now, the height must be specified in pixels, is there any quick fix to make it to be auto.
Regards
Hi,
I’d like to see an update which works with the most recent version of Jquery.
Thanks!
Hello,
I’ve tested the script with jquery 1.8 and it does work. Which version of jQuery and jQuery UI are you using?
I’m developing a website for a friend and found this amazing plugin. But I’m not able to get it autoscrolling. If possible, I’d like to have both features, autoscroll and mouse action. Does anybody have a suggestion?
This works great, I have a lot of pictures Im trying to slide through but the scroller will show half of the next one and then when I click the next button it only shows the other half of that picture, is there any way I can tell it how many pixels for each section (each section you see till you say next)?
Hi! Its working very fine to me! But i need one thing: It´s possible add one diferent class and take it to the center the anchor tag selected or mousehovered?
Thnak´s for this great plugin.
Can any body help me to have a continuous auto scroll with constant speed my Jquery Settings are as follows
$(“#tS2″).thumbnailScroller
({ scrollerType:”hoverAccelerate”,
scrollerOrientation:”horizontal”,
scrollSpeed:2,
scrollEasing:”easeOutCirc”,
scrollEasingAmount:600,
acceleration:4,
scrollSpeed:800,
noScrollCenterSpace:0,
autoScrolling:1,
autoScrollingSpeed:8000,
autoScrollingEasing:”easeInOutQuad”,
autoScrollingDelay:2500})
});
but its not working as I wanted to be its rotating only 1 time from and the speed increasing constantly while rotating.’you can see it on http://72.3.234.248/stoneworld/Default.aspx
I would be very much tahnk full if any body would solve and mail me on ahe_ilyas_at_yahoo_dot_com
I want constant speed continuous scroll
Great scroller! Very pretty!
I’ve gone through some of the comments and didn’t notice this. How do I make an image appear above the scroller on click of the thumbnail?
Any help would be appreciated!
Thank you!
Wondering if there is any way to use a more current version of the jQuery library, like 1.8.2 instead of 1.5?
I cannot use both together that I know of. If I just switch it all to the 1.5 jQuery library, then I lose functionality of other parts of my site that are utilizing 1.8.2 (:
Great tutorial and amazing script! It’s really helping me understand jQuery more!
You can use the script with latest jQuery (1.8.x)
If the contents of are modified by AJAX, how do you call the function again to update the scroll bar? I see window.onload right now but I need to do this on the fly.
Instead of having the content show on just one horizontal line, is there a way to add another horizontal row directly beneath the first?
hi, great plugin. Im using it for an auto scroll on a bunch of thumbnails. When i initiate the auto scroll it seems to accelerate as the scroll progresses, is there a way to keep the scroll speed the same all the way through the animation? Also, is there a way to loop back to the first thumbnail when it gets to the end of the the div, rather than reversing the animation?
Thanks so much!
This a really nice script. Is it possible to set a default position? Like set item number in the middle of scroller view field.
Really want a fix for dramatic window resize.
Going from 960 to 1920 width completely breaks the precise scrolling. I think it’s just dimension fix needed on resize. Should be quick fix for someone coding js at your level…
I actually just found a nice workaround.
The main issue I was having was going from pretty small (windows size), to quite large. While I had modified the .jThumbnailScroller css to be a width of 80%, the math gets to be off and it looks quite broken to the user.
My simple fix, which was a compromise, but still looks good, was append max-width: 960px, after width: 80% .
Effectively, this make the math okay again
and it still looks good overall.
this not solved in chrome and safari. only works in firefox and explorer… other solution??? you can view this bug in the demo (this page) resized in view the error.. some fix?
thank you so much for this module. helped me alot! free on top of that. mmm!
i have a question for you though, regarding the autoscroll function contra the hover function.
when i hover on the scrollbar on autoscroll it disables the autoscroll function and stops until page is refreshed once again.
Q: is there a way to make is continue autoscroll after you hover on it?
dearest phillip
thank you in advance
Hi malihu
Thanks alot for this plugin.
I have a problem, i have to make vertical scroller with two fixed arrows (one on top and one on bottom). when click on bottom arrow scroller should move downwards and vice-versa)
Pls help
Hi Malihu,
I was wondering if you maybe have an time estimate on when will you update the plugin.
I think that swipe gestures are really needed to go along with hoverAccelerate version of the plugin.
That functionality would make this plugin complete!! Or do you maybe have some dirty fix to make hover version work with swipe gestures? Maybe combining with hammer.js or some other script?
Many thanks
Great job malihu.. really useful plugin, thanksssss!!!!
And now I got a problem. I upload images by using ajax and the scroll does not work. Is there any way to fix with that?
Excellent scroller, thank you so much for putting it out!
Having trouble with the scroller type. They all work for me except the “clickButtons,” is there any reason why the other types would work and not this one? Is there any other settings I need to change if I want this type to apply? I’ve checked the code multiple times between the examples and mine and can’t figure out what the issue is.
Thanks!
the vertical scroll is still broken in IE, images scroll horizontally. Is there an update for that?
Otherwise , very nice script.
solved the issue by changing the css jTscrollerContainer and .jThumbnailScroller#tS3 position to relative, yet the scroll is kind of jumpy in IE8.
I have another Q though, I could use a function that would automatically scroll the script to a specific image id given in the href tag ( this way I can group images in categories, and when click on a category link the script will scroll to that category start image). Is that possible?
Not possible at the moment. I’ll definitely implement such feature on the next version of the plugin (I plan on developing version 2.0 soon). Thanks for the suggestion.
well, I managed to do some kind of a dirty fix that will suit my needs for now (I’m not much of a scripter) using Alro’s code from his comment.
That is I’ve declared an empty namespace var. to be able to access Alro’s custom function inside the windows.onLoad code that will make the image with the specified ID go at the top of the scroller when called by an onClick event on my href. The only drawback is the scroll happens instantly, click on the link and the scroller jumps directly to that image. Something like this:
window.IDscroll= {};
(function($){
window.onload=function(){
$(“#tS3″).thumbnailScroller({
//all the scroller params;
});
window.IDscroll.bh = function(myid) {
var posOne= 10 – $(‘#’+myid).position()['top'];
$(‘#tS3 .jTscroller’).css(‘top’, posOne); }
}})(jQuery);
and in HTML on the href tag I have the onClick=”window.IDscroll.bh(‘picture3′)” that will make the scroller jump to the picture with id=”picture3″ .
I have same situation is there any updation for this on jquery thumbnail scroller, i have tried according to category but still slider images not loaded,as width is not set for jscroller container.please let me know asap .
Thanks
Hemant
Hi! Thanks for this beautiful work. I’ve installed this thumbnail scroller on the new version of my website, using thumbnails pulled from a database. I’ve run into a curious problem that only seems to happen in Firefox, the last image will appear below the other images, pushing the format out.
It happens here: http://durangoplants.com/durangoplants.php?plantdisplay=yes&id=3 but it does NOT happen here…
http://durangoplants.com/durangoplants.php?plantdisplay=yes&id=18
Any idea what I might be missing?
Thanks for sharing, it is really nice.
I found one issue. Using HTML5 doctyp
<!DOCTYPE html>)causes a white border at the bottom of the thumbnails. In that case it looks like the calculated hight is different. Maybe you want/can fix that problem.It has nothing to do with the html version. White space at the bottom of images appears because display: inline is default.
The solution is to add a css line:
a img { display: block; }Sorry, one other question!
For the Thumbnail Scroller, is it possible to snap to nearest image on scroll? Otherwise there are some images that are never ‘fully visible’. If you know what I mean.
Eg. images that flow across 2 section
Not currently possible. Check comment 248 to see if another custom script I made suit your needs.
I adore this image scroller alot. However when I saw it on another site, the images popped out upon clicking which doesn’t happen in the live demo. (Be nice I’m a teenybopper teaching herself joomla /design/coding) Would I need to do something separate to make this happen?
This is done by using additional plugins such as:
http://lokeshdhakar.com/projects/lightbox2/
and http://fancybox.net/
Can you somehow post an example of how lightbox/fancybox would be integrated into the code? Please and thank you! Love your code regardless!
hi,
in your custom jquery ui what functions are included? one easing and other else?
Regards
Just the core and easing functions of jQuery UI.
Great plugin!
Just wondering if you can suggest the best way to make the scroller move 1 thumbnail at a time, rather than a whole screen width?
The plugin does not provide an option to scroll by thumbnail. However, I’ve made a similar custom script that does what you need. Get it here:
http://manos.malihu.gr/tuts/products-scroller.zip
Thank you! Much appreciated
Any idea how I could get this to still work in IE7? That is my only issue now
Hello,
there is a serious bug in the script, if you resize the window on any platform or zoom in the browser on windows, the scroller gets messed up. I reproduced the issue even on your demo.
thanks
Great script but i have some problems.
Is there any way there is no actual ease animation? I mean, i just want ti to scroll with the same speed the whole time, as it is now, it just speeds up until it reaches the end point and in jquery ui ease effects there is no such thing.
also, is there any way when you hover an image to just pause?
one last thing, does anybody else has “jumpy” issues? the animation seems like going a bit shaky (as well as when hovering with mouse)
thank you!
p.s: basically what im trying to do is replace Flash Image Scroller FX with this script..
Hello,
I’m having a problem with right-to-left content. My page has “direction: rtl” under body, and the scroll shows blanks after the first click. Any help would be appreciated! Thanks!
hi, great plugin and all but i have a problem, the code that is inside the body is making my code in the head not work, how can i fix this? here´s my code.
any ideas ?
<head> $(document).ready(function() { $('nav#primary a').hoverIntent( function () { $(this).prev().show('.1'); }, function () { $(this).prev().hide('.1'); } ); }); </head> <body> <script> jQuery.noConflict(); (function($){ window.onload=function(){ $("#tS2").thumbnailScroller({ scrollerType:"hoverPrecise", scrollerOrientation:"horizontal", scrollSpeed:2, scrollEasing:"easeOutCirc", scrollEasingAmount:600, acceleration:4, scrollSpeed:800, noScrollCenterSpace:10, autoScrolling:0, autoScrollingSpeed:2000, autoScrollingEasing:"easeInOutQuad", autoScrollingDelay:500 }); } })(jQuery); </script> </body>hi,
just want to make sure that, the only document that i have to modifi is only jquery.thumbnailScrollerOriginal.js? rigth?
Thanks.
do i need to delete some code?
I am right in understanding that this doesn’t work with Magento?
Hi, I have a problems with the horizontal scroller. On Firefox is works perfect with the hoverAccelerate, but when I try it on Chrome, it seems to give me a few thumbnails and then starts over on the next row instead of flowing in one line. Also to let you know, I’m scrolling articles and not just thumbnails. I hope you can figure out a solution for me. Thanks.
I had the same problem here. You have to add a with declaration to the “a” tag style and then it will work. Example:
.jThumbnailScroller .jTscroller a {– other stuff –; with: 180px;}
Hi great script, thank you.
I’m sorry if this has been addressed already but I have been unable to find it so far. Can I automatically scroll the scroller to the start by clicking a link?
Cheers
Sorry forgot to mention that this scroller has been implimented into a Magento theme, but for some reason the buttons are working to scroll the images.
Here is the code used:
<div id="tS3" class="jThumbnailScroller"> <div class="jTscrollerContainer"> <div class="jTscroller"> <?php if (count($this->getGalleryImages()) > 0): ?> <ul class="img-list"> <?php foreach ($this->getGalleryImages() as $_image): ?> <li><a href="<?php echo $this->helper('catalog/image')->init($this->getProduct(), 'thumbnail', $_image->getFile());?>" class="fancybox" rel="product-images"><img src="<?php echo $this->helper('catalog/image')->init($this->getProduct(), 'thumbnail', $_image->getFile())->resize(60); ?>" alt="" width="60" height="60" /></a></li> <?php endforeach; ?> </ul> </div> </div> <a href="#" class="jTscrollerPrevButton"></a> <a href="#" class="jTscrollerNextButton"></a> </div> <script> jQuery.noConflict(); (function($){ window.onload=function(){ $("#tS3").thumbnailScroller({ scrollerType:"clickButtons", scrollerOrientation:"vertical", scrollSpeed:2, scrollEasing:"easeOutCirc", scrollEasingAmount:600, acceleration:4, scrollSpeed:800, noScrollCenterSpace:10, autoScrolling:0, autoScrollingSpeed:2000, autoScrollingEasing:"easeInOutQuad", autoScrollingDelay:500 }); } })(jQuery); </script> <script src="jquery.thumbnailScroller.js"></script>Once again, any assistance is appreciated.
Buttons are not working
|
me again;)
I fixed the buttons problem (i just deleted by mistake the button links from my html..ups)
now the buttons appear, but both in the corner up-left.
any idea why? I’m gonna touch the css, but maybe its a bug.
ah! another bug! on Firefox sometimes doesn’t show all the pictures.
ps: I love this script =)
mmmm… and the arrows don’t show on Firefox :S
hi, it’s me again =)
Im changing the scroll from hoverprecise (in this option everything works properly) to buttons, but when I change this value here..
jQuery.noConflict();
(function($){
window.onload=function(){
$(“.jThumbnailScroller”).thumbnailScroller({
scrollerType:”clickButtons”,
scrollerOrientation:”horizontal”,
scrollSpeed:2,
scrollEasing:”easeOutCirc”,
scrollEasingAmount:600,
acceleration:4,
scrollSpeed:800,
noScrollCenterSpace:10,
autoScrolling:0,
autoScrollingSpeed:2000,
autoScrollingEasing:”easeInOutQuad”,
autoScrollingDelay:500
});
}
})(jQuery);
it doesn’t move neither the buttons appear…. do you have any idea why can it be?
thank you very much
solved, i deleted the links by mistake =)
Cris ,
I have the same problem, but I’m not sure what links you are referring tom
thanks
Exactly what I was looking for
Hello,
I’ve recently implemented this thumbnailscroller (I first gave a try to the also great custom scroller) in one of my website’s pages and it works very well.
Maybe the following question will be here somehow out of place and I will understand if I get no reply to it.
I’m totally new to web design, I’ve just learned html and css by myself and I think I’ve done so far good stuff in my website. I’m now implementing enhancements like the thumbnail scroller.
I’m currently working off-line using notepad++, and html 5 doctype.
When I launch the page with the plugin in IE9 I get the browser’s allow or block scripts in this page question. But if I open this page’s demo in the same browser it loads without any interruption.
The question is why the same script pops the question up if contained in my page and not if contained in yours?
It also makes me wonder what else I must learn besides html and css.
Thanks a lot.
Hello,
It’s just a security feature of IE when opening pages that contain scripts locally. Just click “allow”
When you open pages from a live server (online) you don’t get such messages (that’s why you don’t see the security alert when you open the demo).
So it’s a fact of live or local execution, that simple it is! It makes me feel reasured cause I’m just starting to swim into the scripts’ waters and I already have lots of wrinkles in my forehead with all the noscript coding. Thanks again.
Somewhere in the future I’ll post a comment filling the website input so you can see your plugins in action if you want.
http://www.restorationlutheran.com/includes/slideshow/slidebox.html
For some reason I can seem to get the buttons on the scroller to scroll the images up and down.
Any assistance would be highly appreciated.
Thank you very much for scroller!
I have little problem with moving thumbnails in axis Y. How can I disable this? Is any way to remove this option in script? My thumbnails move about 10px up and down invert direction than mouse cursor. I used in my page parallax script to make layers moving but this should only work in div with class “shell”. When I move out whole thumbnail scroller div from “shell” is still this effect on thumbs. When I even remove parallax script from page is not help. I’ll be appreciate for help! Thanks a lot!
Malihu, can you help me with this? How can I remove Y axis in script? I’ll be grateful
Find line:
$scroller.stop(true,false).animate({left:destX,top:destY},options.scrollEasingAmount,options.scrollEasing);Replace with:
$scroller.stop(true,false).animate({left:destX},options.scrollEasingAmount,options.scrollEasing);Works great! Thank you very much for plugin and for you help!
Very nice script, it works beautifully. One question. Is there a way to make it start somewhere other than thumbnail 1. So if I had a row of 50 thumbs for example, could I make it load with thumb #25 showing giving me the option to scroll left and right to see the others?
Many thanks.
Hello, I put your plugin in my page, but when I enter with mobile or ipad or any touch device the scroll (non buttons version) is not working properly, any suggestion? or should I switch to the buttons version?
Thank you
Yes, currently there’s no touch-device support for non-buttons scroller. I’ll definitely implement such feature on the next plugin update.
Now the ipad, iphone are supported?
thanks for you great plugin
I’ll release version 2.0 very soon. Among others, it’ll support all touch devices (iOS, Android, MS windows 8 etc.)
This is a great plugin. Is it possible when clickin the right or left arrow, it slides not 100% of width, let say slide 100px for every click? Thx Dude!!
Nope sorry. I’ve made another custom plugin that works only horizontally with left/right buttons and scrolls the images by each next image width. Depending on what you need to do, this could be what you need. Let me know so I can send it to you.
Hello,
I wonder what can I do to make the miniatures fit the scroller when the miniatures are bigger than the scroller. Any help would be welcome, I’m new in jquery.
Thank you.
You can do it with css. For example, if you want your images to fit in 150 pixels height, you could do something like:
.myImagesClass{ height: 150px; width: auto; }love the scroller — it’s just the functionality I needed on my personal site.
One question: is it possible to change the background color of the scroller window? I’ve fiddled with everything that looks like a hex color code in your script with no result.
Is there a value where I can use a standard 6-digit hexadecimal code?
Thanks in advance… my programming knowledge is limited!
Have you tried adding background-color:#ff3344 (for example) to .jThumbnailScroller ?
Hi, I would like to know if there is any way to show the title of the picture when you put the cursor on the picture (on hover).
Thank you
Hi! Thanks for all the wonderful work you do!
I was wondering if it’s possible to scroll divs instead of images? I am going to go ahead and try it anyway, i couldn’t see anything in the comments. Thanks!
I’m dumb, I checked the code and it makes sense. This works AMAZINGLY for scrolling content as well. Thanks again for being amazing!
Indeed you can scroll anything you want. Sorry for not posting an example of scrolling other content but I focused on images as it’s the most common implementation.
Thanks for your comments Michael
Hi,
First, thanks for the wonderful scroller.
Now that I’m convinced this is the best scroller I could get, I got stuck on 2 issues:
1- My content is RTL and I need to invert the whole scroller motion. Is there a way to have the scroller scroll right to left?
2- I’ll be using the “clickButtons”, I want the scroll “space” to be less than the full width. Rather, I want to set it to something small so that the user controls the scrolling as my images are being cut midway using the default scrolling width. How to assign the scroll offset width?
Thanks in advance.
It’s me again I just would like to know how make 3 scrolls that looks exactly the same (horizontal and width:100%) in the same page.
i think for me help
Hi,
Give them the same class (e.g. .myClass), style this class via css and call the plugin like this:
$(".myClass").thumbnailScroller();should I change the first class jThumbnailScroller for myClass? or how do you mean?
thank you =)
No, you can keep jThumbnailScroller if you want and call the plugin:
$(".jThumbnailScroller").thumbnailScroller();thank you so much for your help , you’re amazing for answering to all of us.
=) peace!
It’s me again, I just would like to know how to make 2 scrolls that looks exactly the same (horizontal and width:100%) in the same page.
Hello, first of all say that this scroller is great, not very often you find something made with good taste =)
Second say that I’m trying to put it on my website, in fact 2 scrolls the same, so I don’t need the id selector, but I dont know how to use it to call the function, Im trying with the id but It doesn’t work properly, it not even scroll. So I would like to ask for some help if possible.
thank you
I love the plugin, but it seems there is a problem with the scrolling function. It was scrolling as normal, but now when scrolling from right to left, it also scrolls down from top to bottom and the images disappear. How can I fix this?
Hi,
Probably your contents height is greater than the container. Check your css to see if jThumbnailScroller has the correct height of its contents.
Hi malihu,
Thanks for the great idea and for all of your support since you published this. I have a question that hopefully you can help me with. I am using what’s likely a much narrower implementation of this than usual, and what I would like to know is:
Is it possible to set it up so that when clicked, rather than moving to the next unseen section of images, it centers the next image in the sequence? The issue for me is that sometimes we never see the entirety of the image together:
For ten images, nine clicks would be necessary to cycle through them all.
Ah, it seems IMG tag doesn’t work.
http://i.imgur.com/6kcqa.png
http://i.imgur.com/U91ee.png
Hi I love this script but I have a small problem In this link (http://manos.malihu.gr/tuts/jquery_thumbnail_scroller_absolute_position.html) how can I Manage the speed of scrolling..???
Sry for Bad english….
You cannot change the scrolling speed (there’s none). Scrolling position is determined by how fast you move the mouse over the images area (e.g. if you move mouse slowly, the scrolling “speed” is slow).
Hello,
This code is fantastic, but I need a little help with this code.
I am using this code to display in the div about 200+ pictures, then when someone choose the picture, the scroller should fix the image select at the center and the others in they respective position.
Example:
If i have selected image15
then it should display:
image13 image14 IMAGE15 image16 image17
Have someway to autoscroll to this position?
thank you;
One example of the code running you can get here:
http://lambelambe.com/dev/event_detail.php?id=20120609172721&se=A&ph=img20120606_093038.jpg&n=4&t=275&vw=1
hello,
what is the solution for put two times the same scroller on the same page?
I did a copy / paste the code but only one works, the second does not work!
thanks !
Hello, I’m using your plugin is fantastic.
But I have a little problem.
I’m using it with: scrollerType “clickButtons” and scrollerOrientation “horizontal” but if someone clicks on the buttons while loading the images on the screen scroll the browser goes to the top.
It’s annoying, because I’m using the plugin in the bottom of the page, and you have to load many images.
If an impatient user, clicks, position shifts to the top of the page.
As I can avoid this? Thank you!
I’m running into this problem too… Did you ever figure this out?
Thank you for developing this scroller! Is there a way to add a short caption under each image?
Hello,
Thanks for the scroller. It works great. I have a small request.
Is there a way to set a scroll position. I want to remember the scroll position of the user and show the user the same position after the page is re-loaded.
Thank you in advance.
MSR
Hi. I’m using the expanding horizontal scroller…
When the browser window is more than about 1300px wide, and the scroller is all the ways to the right, I get a jitter like some people have mentioned here before. Have you found a solution to this yet?
Also, (apologies if this is an obvious question…) but I have some interactive elements within the scroller which I would like to have stop the scroller on mouseenter. How do I do this?
Here’s a link if you need… http://www.wp.mpa.voyced.com
Thanks so much and awesome work!
Dan
Hi,
Thank you for the plugin, is very nice,
But I have a little bug (maybe me), I want a horizontal scroll, and this working,
But this is scrolling vertically also, top =-4px on .jTscroller, so this is a good effect for the eyes,
How can I have take off the vertical scrolling ?
http://www.capponiconstruction.com/category/group-qualifications/
Thanks
Olivier
Your jThumbnailScroller has 71 pixels height. It should be 68 pixels just by inspecting your code with firebug. All your divs inside jThumbnailScroller are 68 pixels high.
Thank you for the tip,
I have another question, how can I always display left and right arrow. The script display none my arrow
Thanks
Olivier
And display the arrow on the left and right of the div .jTscrollerContainer, so not in the picture ?
Hi, if i enable auto scrolling in horizontal , the scroll works, but, it moves also in vertical position. Is there a configuration I mess?
Hi,
It’s best to set the exact height of the container in css (including inner heights, margins, paddings etc.)
Solved , in the css I’ve modified
.jThumbnailScroller .jTscroller{position:relative; height:100%;with
.jThumbnailScroller .jTscroller{position:relative; height:100px;using the same dimension in pixel as the container.
Hello all, brother, I have a problem, how do I get when I move the scroller, to reload the page remains in the stop position, that is, if I position myself in the last image, click and you doi reloading the page, how do I appear in the position of the last picture?
Hi all,
Im looking to add page indicator to this, how could I extend this to add a callback on the previous & next buttons to update a parent div???
Thanks, G
As Will asked a long time ago, I’d like to know if someone found a way to externally call the plugin to scroll to a specific element ?
Thanks !
Ok, easy one.
$(“.jTscroller”).stop().animate({‘left’: hereYouGo});
Hello all,
Can anybody tell me how to add youtube videos in this scroller? I tried to copy and paste the youtube link but nothing show up! Do I have to add a class in the CSS for video frame? Please help, I’m so new at this!!
Thankss!!
Thanks for the script
hi dear
i used this plugin and it works successfully but 2 errors …
one that ie 9 cant run javascript to set te width … i set it manualy on css
then when i load it on an iframe it cant load buttons
what can i do
ty
gud work …. keep it up
vertical scroller is not working in IE..before 10 days it was working fine.
CRAZY COOL! super glad i found this, thanks so much for putting this together. I have been searching all over the web for something like this, most other jquery scrolls are no where near as slick as this one – keep up the great work!
Is it possible to make scroll without mouse interaction, i want to scroll the thumbnails continuously