jQuery thumbnail scroller
A thumbnail/image scroller that can be used as standalone or alongside lightboxes, gallery scripts etc. Features include: scrolling by cursor movement, buttons and/or touch, vertical and/or horizontal scrolling, customization via CSS and option parameters, methods for triggering events like scroll-to, update, destroy etc., user-defined callbacks functions and more.
Current version 2.0.3 (Changelog) – Version 1.x.x (no longer actively maintained)
How to use it
HTML
Get plugin files. Extract and upload jquery.mThumbnailScroller.min.js and jquery.mThumbnailScroller.css to your web server (more info)
Include jquery.mThumbnailScroller.css in the head tag your html document
<link rel="stylesheet" href="/path/to/jquery.mThumbnailScroller.css">
Include jQuery library (if your project doesn’t use it already) and jquery.mThumbnailScroller.min.js in your document’s head or body tag
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script> <script src="/path/to/jquery.mThumbnailScroller.min.js"></script>
Create the markup with your images, links, etc. which is basically an element (e.g. a div) holding an unordered list (ul)
<div id="my-thumbs-list"> <ul> <li><a href="image-1-link"><img src="/path/to/image-1-file" /></a></li> <li><a href="image-2-link"><img src="/path/to/image-2-file" /></a></li> <li><a href="image-3-link"><img src="/path/to/image-3-file" /></a></li> <li><a href="image-4-link"><img src="/path/to/image-4-file" /></a></li> <!-- and so on... --> </ul> </div>
CSS
Give your element (in the example above #my-thumbs-list) a width and/or height value and a CSS overflow value of auto or hidden. For example:
#my-thumbs-list{ overflow: auto; width: 800px; height: auto; }
If you’re creating a vertical scroller, you’ll need to set a height (or max-height) value
#my-thumbs-list{ overflow: auto; width: 300px; height: 500px; }
Initialization
Initialize via javascript
Create a script and call mThumbnailScroller function on your element selector along with the option parameters you want
<script> (function($){ $(window).load(function(){ $("#my-thumbs-list").mThumbnailScroller({ axis:"x" //change to "y" for vertical scroller }); }); })(jQuery); </script>
Initialize via HTML
If you prefer to initialize the plugin without a script, you can simply give your element the class mThumbnailScroller
and optionally set its orientation via the HTML data attribute data-mts-axis
("x"
for horizontal and "y"
for vertical). For example:
<div id="my-thumbs-list" class="mThumbnailScroller" data-mts-axis="x"> <ul> <!-- your content --> </ul> </div>
Basic configuration & option parameters
The 2 basic options are axis
which defines the scroller orientation and type
which defines how the user interacts with the scroller.
axis
The default scroller orientation is horizontal, so if you don’t set an axis
option value, it defaults to "x"
$("#my-thumbs-list").mThumbnailScroller({ axis:"x" });
To create a vertical scroller, set axis
option to "y"
$("#my-thumbs-list").mThumbnailScroller({ axis:"y" });
or use data-mts-axis="y"
if you’re initializing the plugin via HTML
type
You can set the type of scroller via javascript, for example:
$("#my-thumbs-list").mThumbnailScroller({ type:"hover-50" });
or using the HTML data attribute data-mts-type
, e.g.:
<div class="mThumbnailScroller" data-mts-type="hover-50">...</div>
There are 4 basic scroller types:
"hover-[number]"
(e.g."hover-33"
,"hover-80"
etc.)Scrolling content in linear mode by hovering the cursor over the scroller edges. The edges are defined by the type name, where [number] indicates the percentage of the scroller area in which scrolling is idle. For example, setting
"hover-50"
(default value) on a 600 pixels wide horizontal scroller, means that scrolling will be triggered only when the cursor is over the first 150 pixels from the left or right edge. And when cursor is over the 50% of the scroller width (300 pixels), scrolling will be idle or stopped.hover-precise
Scrolling content with animation easing (non-linear mode) by hovering the cursor over the scroller. The scrolling speed and direction is directly affected by the cursor movement and position within the scroller.
"click-[number]"
(e.g."click-50"
,"click-90"
etc.)Scrolling content by clicking buttons. The scrolling amount is defined by type name, where [number] indicates a percentage of the scroller area. For example, setting
"click-50"
on a 800 pixels wide horizontal scroller, means that each time you click the left or right arrow buttons, the content will scroll by 400 pixels (50% of 800px) to the left or right.click-thumb
Scrolling each image/thumbnail at a time by clicking buttons.
"hover-[number]"
and hover-precise
types become disabled on touch-enabled devices and replaced by content touch-swipe scrolling.
Configuration
You can configure your scroller(s) using the following option parameters when calling mThumbnailScroller function
Usage $(selector).mThumbnailScroller({ option: value });
setWidth: false
- Set the width of the scroller (overwrites CSS width), value in pixels (integer) or percentage (string).
setHeight: false
- Set the height of the scroller (overwrites CSS height), value in pixels (integer) or percentage (string).
setTop: 0
- Set the initial css top property of content, accepts string values (css top position).
Example:setTop: "-100px"
.
setLeft: 0
- Set the initial css left property of content, accepts string values (css left position).
Example:setLeft: "-100px"
.
type: "string"
- Scroller type defines the way users interact with the scroller.
Available values:"hover-[number]"
(e.g."hover-50"
)
Scrolling content in linear mode by hovering the cursor over the scroller edges. The edges are defined by the type name, where [number] indicates the percentage of the scroller area in which scrolling is idle. Scrolling accelerates proportionally according to cursor position: e.g. scrolling speed increases as the cursor moves towards the edges and decreases as it moves towards the center of the scroller area."hover-precise"
Scrolling content with animation easing (non-linear mode) by hovering the cursor over the scroller. The scrolling speed and direction is directly affected by the cursor movement and position within the scroller.click-[number]
(e.g."click-80"
)
Scrolling content by clicking buttons. The scrolling amount is defined by type name, where [number] indicates a percentage of the scroller area."click-thumb"
Scrolling each image/thumbnail at a time by clicking buttons. Each click will scroll the content by the width/height of the next non-visible adjusted image.
axis: "string"
- Define scroller axis (scrolling orientation).
Available values:"y"
,"x"
,"yx"
.axis: "y"
– vertical scrolleraxis: "x"
– horizontal scroller (default)axis: "yx"
– vertical and horizontal scroller (useful when panning images or switching axis on-the-fly)
speed: integer
- Set the scrolling speed (higher=faster). Default value is
15
.
contentTouchScroll: integer
- Enable or disable content touch-swipe scrolling for touch-enabled devices.
To completely disable, setcontentTouchScroll: false
. Integer values define the axis-specific minimum amount required for scrolling momentum (default value is25
).
markup:{ thumbnailsContainer: "string" }
- Set the element containing your thumbnails. By default, this is an unordered list (
ul
).
markup:{ thumbnailContainer: "string" }
- Set the element containing each thumbnail. By default this is a list-item (
li
).
markup:{ thumbnailElement: "string" }
- Set the actual thumbnail element. By default, this is an image tag (
img
).
advanced:{ autoExpandHorizontalScroll: boolean }
- Auto-expand content horizontally (for
"x"
or"yx"
axis).
If set totrue
(default), content will expand horizontally to accomodate any floated/inline-block elements (such asli
,a
,img
etc.).
advanced:{ updateOnContentResize: boolean }
- Update scroller(s) automatically on content, element or viewport resize. The value should be
true
(default) for fluid layouts/elements, adding/removing content dynamically, hiding/showing elements etc.
advanced:{ updateOnImageLoad: boolean }
- Update scroller(s) automatically each time an image inside the element is fully loaded. The value is
true
by default.
advanced:{ updateOnSelectorChange: "string" }
- Update scroller(s) automatically when the amount and size of specific selectors changes.
Useful when you need to update the scroller(s) automatically, each time a type of element is added, removed or changes its size.
For example, settingupdateOnSelectorChange: "ul li"
will update the scroller each time list-items inside the element are changed. Setting the value totrue
, will update the scroller each time any element is changed. To disable (default) set tofalse
.
theme: "string"
- Set a ready-to-use scroller theme (plugin’s CSS contains all themes).
callbacks:{ onInit: function(){} }
- A function/custom code to execute when the scroller has initialized (callbacks demo).
Example:
callbacks:{ onInit:function(){ console.log("scroller initialized"); } }
callbacks:{ onScrollStart: function(){} }
- A function/custom code to execute when scrolling starts (callbacks demo).
Example:
callbacks:{ onScrollStart:function(){ console.log("scroll started"); } }
callbacks:{ onScroll: function(){} }
- A function/custom code to execute when scrolling is completed (callbacks demo).
Example:
callbacks:{ onScroll:function(){ console.log("scroll completed"); } }
callbacks:{ onTotalScroll: function(){} }
- A function/custom code to execute when scrolling is completed and content is scrolled all the way to the end (bottom and/or right) (callbacks demo).
Example:
callbacks:{ onTotalScroll:function(){ console.log("Scrolled to 100%"); } }
callbacks:{ onTotalScrollBack: function(){} }
- A function/custom code to execute when scrolling is completed and content is scrolled back to the beginning (top and/or left) (callbacks demo).
Example:
callbacks:{ onTotalScrollBack:function(){ console.log("Scrolled back to 0%"); } }
callbacks:{ onTotalScrollOffset: integer }
- Set an offset for the onTotalScroll callback option.
For example, settingonTotalScrollOffset: 100
will trigger the onTotalScroll callback 100 pixels before the end of scrolling is reached.
callbacks:{ onTotalScrollBackOffset: integer }
- Set an offset for the onTotalScrollBack callback option.
For example, settingonTotalScrollBackOffset: 100
will trigger the onTotalScrollBack callback 100 pixels before the beginning of scrolling is reached.
callbacks:{ whileScrolling: function(){} }
- A function/custom code to execute while scrolling is active (callbacks demo).
Example:
callbacks:{ whileScrolling:function(){ console.log("scrolling..."); } }
callbacks:{ alwaysTriggerOffsets: boolean }
- Control the way onTotalScroll and onTotalScrollBack offsets execute.
By default, callback offsets will trigger repeatedly while content is scrolling within the offsets.
SetalwaysTriggerOffsets: false
when you need to trigger onTotalScroll and onTotalScrollBack callbacks only once.
live: boolean, "string"
- Enable or disable the creation of scroller(s) on all elements matching the current selector, now and in the future.
Setlive: true
when you need to add scroller(s) on elements that do not yet exist in the page. These could be elements added by other scripts or plugins after some action by the user.
If you need at any time to disable or enable the live option, setlive: "off"
and"on"
respectively.
You can also tell the script to disable live option after the first invocation by settinglive: "once"
.
liveSelector: "string"
- Set the matching set of elements to apply a scroller, now and in the future.
Plugin methods
Methods are ways to execute various scroller actions programmatically from within your script(s).
update
Usage $(selector).mThumbnailScroller("update");
Call the update method to manually update existing scrollers to accomodate new content or resized element(s). This method is by default called automatically by the script (via updateOnContentResize
option) when the element itself and/or its content size changes.
scrollTo
Usage $(selector).mThumbnailScroller("scrollTo", position, {options});
Call the scrollTo method to scroll content to the position parameter. Position parameter can be a string (e.g. "#element-id"
, "bottom"
, "left"
etc.), an integer indicating number of pixels (e.g. 100
), an array for y/x axis (e.g. [100,100]
), a js/jQuery object, a function etc. method demo
scrollTo position parameter
Position parameter can be:
"string"
- Element selector
For example, scroll to element with id “element-id”:
$(selector).mThumbnailScroller("scrollTo","#element-id");
- Special pre-defined position
For example, scroll to right:
$(selector).mThumbnailScroller("scrollTo","right");
Pre-defined position strings:
"bottom"
– scroll to bottom"top"
– scroll to top"right"
– scroll to right"left"
– scroll to left"first"
– scroll to the position of the first element within content"last"
– scroll to the position of the last element within content
- Number of pixels less/more: (e.g.
"-=100"
/"+=100"
)
For example, scroll by 100 pixels right:
$(selector).mThumbnailScroller("scrollTo","-=100");
- Element selector
integer
- Number of pixels (from left and/or top)
For example, scroll to 100 pixels:
$(selector).mThumbnailScroller("scrollTo",100);
- Number of pixels (from left and/or top)
[array]
- Different y/x position
For example, scroll to 100 pixels from top and 50 pixels from left:
$(selector).mThumbnailScroller("scrollTo",[100,50]);
- Different y/x position
object/function
- jQuery object
For example, scroll to element with id “element-id”:
$(selector).mThumbnailScroller("scrollTo",$("#element-id"));
- js object
For example, scroll to element with id “element-id”:
$(selector).mThumbnailScroller("scrollTo",document.getelementbyid("element-id"));
- function
For example, scroll to 100 pixels:
$(selector).mThumbnailScroller("scrollTo",function(){ return 100 });
- jQuery object
scrollTo method options
speed: integer
- Scrolling speed.
Example:
$(selector).mThumbnailScroller("scrollTo", "-=200", { speed: 30 });
duration: integer
- Scrolling animation duration, value in milliseconds.
Example:
$(selector).mThumbnailScroller("scrollTo", "right", { duration: 1000 });
easing: "string"
- Scrolling animation easing, values:
"easeInOut"
"easeOut"
"easeInOutSmooth"
"easeOutSmooth"
"easeInOutStrong"
"easeOutStrong"
"easeInOut"
"easeInOut"
Example:
$(selector).mThumbnailScroller("scrollTo", 300, { easing: "easeOutSmooth" });
callbacks: boolean
- Trigger user defined callbacks after scroll-to event is completed, values:
true
,false
.
Example:
$(selector).mThumbnailScroller("scrollTo", "top", { callbacks: false });
timeout: integer
- Method timeout (delay). The default timeout is 60 (milliseconds) in order to work with automatic scroller update functionality, value in milliseconds.
Example:
$(selector).mThumbnailScroller("scrollTo", "last", { timeout: 0 //no timeout });
stop
Usage $(selector).mThumbnailScroller("stop");
Stops running scrolling animations. Usefull when you wish to interrupt a previously scrollTo call.
disable
Usage $(selector).mThumbnailScroller("disable");
Calling disable method will temporarily disable the scroller(s). Disabled scrollers can be re-enabled by calling the update method.
To disable a scroller and reset its content position, call the method by setting its reset parameter to true
:
$(selector).mThumbnailScroller("disable", true);
destroy
Usage $(selector).mThumbnailScroller("destroy");
Calling destroy method will completely remove the scroller and return the element to its original state.
Scroller styling & themes
You can style your scroller(s) using jquery.mThumbnailScroller.css which contains the basic/default styling and few ready-to-use themes.
You can modify the default styling or an existing scroller theme directly, clone a theme and change it to your needs or overwrite the CSS in another stylesheet. If you wish to maintain compatibility with future plugin versions (that may include an updated version of jquery.mThumbnailScroller.css), I recommend using your own custom (or cloned) theme (creating your own custom theme), or overwriting the CSS. This way you can always upgrade jquery.mThumbnailScroller.css without having to redo your changes.
Themes
Plugin’s CSS includes a number of ready-to-use themes for quickly applying a basic styling to your scroller(s). To apply a theme, use theme
option parameter:
$(selector).mThumbnailScroller({ theme: "theme-name" });
or the HTML data attribute data-mts-theme
in your markup:
<div class="mThumbnailScroller" data-mts-theme="theme-name">...</div>
creating your own custom theme
User-defined callbacks
You can trigger your own js function(s) by using plugin’s callbacks option parameter (see all availbale callbacks in configuration section). Some examples:
$(selector).mThumbnailScroller({ callbacks:{ onScroll: function(){ /* do something */ } } });
$(selector).mThumbnailScroller({ callbacks:{ onTotalScroll: function(){ myFunction(); } } }); function myFunction(){ /* do something */ }
The plugin returns a number of values and objects that can be used inside the callbacks
this
– the scroller elementthis.mts.content
– the scrollable element containing the content (e.g. theul
element) as jquery objectthis.mts.top
– content’s top position (pixels)this.mts.left
– content’s left position (pixels)this.mts.topPct
– content vertical scrolling percentagethis.mts.leftPct
– content horizontal scrolling percentagethis.mts.direction
– content’s scrolling direction (returns"x"
or"y"
)
Plugin dependencies & requirements
- jQuery version 1.6.0 or higher
License
This work is released under the MIT License.
You are free to use, study, improve and modify it wherever and however you like.
https://opensource.org/licenses/MIT
Donating helps greatly in developing and updating free software and running this blog 🙂
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 :o|
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
How u can scroll divs instead of images?
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.