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 🙂
Hi,
Any idea why opacity and animspeed aren’t working?
Many thanks!
I had the same problem here with the opacity, then I saw that I forgot to put the “class=”thumb” in the IMGs tags.
Fantastic script! any way to integrate it with a lightbox script?
Lightbox plugins such as Lightbox 2 and Lightbox JS can be integrated easily by including the necessary .js files (e.g. lightbox.js) and adding a
rel="lightbox"
attribute to image links.Check Seaduction’s url below for lightbox implementation.
Hi! My question is: how to tie the scroll bar or the dot denoting the scroll position?
Example: http://s012.radikal.ru/i320/1101/d9/692498bcdd7f.jpg
hi, great work. it’s been very helpful. just one suggestion: I think there’s a minor oversight in the instruction for multiple scrollers (given at the very end of your post)? by giving each scroller a unique id, one will also need to update the css file because the styles are assigned only to the element with the original id.
You’re right! Thanks a lot for noticing it feng. I’ll update the post asap.
another stunning gem of a script. love everything you’ve posted!
i’ve added this to an Indexhibit gallery plugin to wonderful effect. however, there seems to be an issue regarding how much horizontal space there is to scroll when loading across several pages.
to clarify: the test page i made works splendidly (http://www.leslierosen.com/test-scroller/), but other pages generated with the exact same plugin show either too much space to the right (http://www.leslierosen.com/fire/photos/) or don’t scroll at all (http://www.leslierosen.com/circus/photos/ which trims two thumbnails entirely)…
i thought maybe there was some kind of caching issue happening, but when i made a second test page, it worked without a problem. so i re-created one of the other pages from scratch, but encountered the same problem as before. i am befuddled!
Hi shaun,
I think the problem is that your thumbnails have different widths. Let me work a bit on the script so it can work with multiple thumbnail sizes. I’ll get back to you shortly.
shaun, please download this modified script:
http://manos.malihu.gr/tuts/jquery.thumbnailScroller.zip
It works with multiple different thumbnail sizes. Let me know the result 🙂
first may i say that you are a scholar and a gentleman for your persistent assistance throughout these threads!
that change made things a little better, but not quite 100%. http://www.leslierosen.com/circus/photos/ still loses it’s last thumb while http://www.leslierosen.com/fire/photos/ still has too much room.
and yet http://www.leslierosen.com/test-scroller/ still works like a charm, even though the thumbs are all different sizes–even when i add/remove items!
shaun, re-download the file (http://manos.malihu.gr/tuts/jquery.thumbnailScroller.zip) as I modified it a bit.
I tested the script on opera, chrome and safari and it worked well. When I saw your new comment, I checked it on all browsers and I found that on firefox and ie there was an issue with the total width of thumbnails container. I did a minor change in the script and I think it works as it should. Check it and let me know.
you, sir, are my hero. it’s perfect on every page!
expect another cup of that delicious paypal brand coffee!
Cheers 😀
This helped me as well! Thanks so much for this beautiful script!
I really like this type of gallery style scroll! It all works wonderfully.
Thank you, a great Script, gooood work
Awesome!
Tnks!
@oky dok
Hello,
If you could give me a link of your page I would be able to help you. I think your problem might be the way you load the plugin but I can’t really tell unless I see the code.
I fixed it….it had to do with the css and this line:
#tsv_container .thumbScroller .content div{padding: 3px; height:100%;}
I changed the height to a smaller number, as it seems 100% was making the distance between the thumbs too large and thereby out of site off the page…shrinking the value made the gap closer and i could see them all.
I have a new issue though……How do i load my page with my working thumbnails successfully into a div on another page, and have all the code work? Currently, when I try to load it, the javascript animation easing and fade effects dont work when i load this page into a div. How can i fix this? Please provide example code if possible.
Thanks
Instead of calling the thumbnail scroller function when the page loads (as shown on the demo) you should call it after ajax data is loaded. When you successfully complete an ajax request, run:
ThumbnailScroller(“tsh_container”,”horizontal”,30,800,”easeOutCirc”,0.5,300);
Is there a reason it does not work on IE6?
Hi,
The reason is that I do not support or check any of the scripts, plugins etc. on IE6 and I wouldn’t be surprised if most stuff here don’t really work on such browsers.
Hi ya ….i love the scroller…
i just would love to know if there is a way to make it work with PrettyPhoto Lghtbox script…..
the fact that the list of Thumbs is made with divs instead of li it gives me problem….anyone tried it?
Thanks.
Ive put the vertical scroller into one of my divs that is 100px wide, and the images are 50px height… I can only get the 1st image to show in the scroller when i preview in the browser, though im able to see them in dreamweaver. Any idea what im doing wrong?
First of, this is a really cool plugin. very smooth and elegant. i love it.
Second, why didn’t you make it a ‘real’ jquery plugin?
all you had to do is change the method to fit the jquery API, like this:
$.fn.thumbnailScroller = function (tsType,tsMargin,scrollEasing,scrollEasingType,thumbnailOpacity,thumbnailFadeSpeed){ id = $(this).attr('id');
Thanks for noticing, I will.
This is very cool… it’s like you read my mind! Thank you!
Pretty cool but how do you integrate it in WP ? because WP use it’s own JQUERY now !!!
I try the following code in my head section but it doesn’t work ??? Any idea why ? :
jQuery(window).load(function() {
jQuery(‘#tsvf_container’).ThumbnailScroller(“tsvf_container”,”vertical”,10,0,”easeOutCirc”,0.2,600);
});
Hello CYRIL,
I’m not really into WP development but please check this:
http://www.ericmmartin.com/5-tips-for-using-jquery-with-wordpress/
Thats really great scroller! Thanks, it is exactly what I do need.
Thank you so much 🙂 Now the script works inside an absolutely positioned element!
@ Malihu,
totally agree on that! !!
Hi Man, great work! That’s exactly what I needed. Is there any simple possibility put more vertical scrollers on one site?
Right now you only can do it manualy. I’ll try to find some time to create a plugin from this script and make it easier to implement 😉
Edit: done!
Thanks a lot. So far I’ll try to do it with renaming of divs.
I’ve created a plugin out of the script Filip. You can put multiple scrollers and configure each one easily. Download the updated files and check the post on how to use it 🙂
Hiya,
first of, thanks a zillion for putting in this effort in giving us all this beautifull scripts! Not ment to suck up, but that is my hounest opinion.
Oke now my problem, i’m using the thumbnail scroller for about 40 thumbs, with a height of 94 and a width of 100 pixels. The space i’ve implemented it in has a height of 396 pixels so is set the height of the container also to 396 pixels.
Now the scrolling does’nt work as it should… when you hover over it with the mouse, towards the bottom, it scrolls way beyond the last thumbnail. Also the top thumbnail can’t be reached anymore.
Has this to do with the height of al the thumbnails or something?
I really could use your help verry much!
Thanks in advance!
Hello Pete and thank you for your comments 🙂
Can you post a link with your implementation so I can check it out?
Thanks Malihu for the reply!
Sorry but that’s not (yet) possible now, but Oli subscribed the problem perfectly, altho i want to use the vertical one!
Thanks a lot for the help dudes!
I have a similar problem: If I place a fixed size horizontal scroller inside a div, which has been positioned absolutely, on mouseover the “band of images” jumps to the left the same amount of pixels that the div has for left-property in css. So the “centering” for the images goes somehow crazy if the #outer_container is inside another element. On page refresh the centering is ok, but as soon as mouseover happens, the centering does not work properly: I cannot get to the first image anymore, and there’s an empty space in the end of the images.
Hello Olli,
Please check a modified script here:
http://manos.malihu.gr/tuts/jquery_thumbnail_scroller_absolute_position.html
View source to get the new code and let me know if problem is solved.
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….
Pete, I’ve changed a bit the code for the Fixed size-vertical scroller.
Please re-downoad the file and get the new code to check the problem is solved.
Malihu…. Fantastic!
Thanks so much for the time you’ve spend to fix this! It works like a charm now!
I did find a second problem… Freaking iPads!
The scroll does’nt work on these shitty machines.
When you use your finger to slide down the webpage “sticks” on your finger…
First when building a website you had to watch out for cross-browser problems, that problem is almost as good as gone and now there’s this freaking iPad which hase to be taken in acount for…
Thanks a lot!
greets,
Pete
You welcome Pete 🙂 I’ve created a plugin out of the script (check the post) so you can download the updated files if you like.
About iPads etc.: In my opinion a product should comply with web technologies and standards (especially ones that exist since the Internet itself) and not the other way around.
hola buena que tal tuto exelente scroll de tumbs …. gracias por compartirlo…=)
I love this script! one question though.
I am using this to show a bunch of logos with different widths. When i go to my page all the images are stacked but when I refresh everything is fine and it works like it should.
Would you know why it only works after I refresh?
Does this happen on all browsers? Can you post a link?
Hey, I appreciate you responding to everyone’s questions in comments, I think thats great.
I am having the same trouble as GMan where the images stack up until the page is refreshed. It seems to be something to do with needing the images to be cached. Have any suggestions?
Here is a link to the site:
http://archives.josephdonnelly.com/jocelyngoldstein/
@Gman @Joe D
The easiest way to fix all those issues is to use an extra plugin that checks when an element resizes and call ThumbnailScroller function. The plugin’s url is:
http://benalman.com/projects/jquery-resize-plugin/
Implement the plugin on your document and then use it like:
$(".content").resize(function(e){ ThumbnailScroller('tshf_container', 'horizontal', 15, 2300, 'easeOutQuad', 1); });
This is the most efficient way to update scroller simply because every user has different scripts/ways for initial loading and updating scroller content.
Thats great , just wana know , how to make it auto scroll …
Auto-scrolling is a completely different script imo. This script is based entirely on mouse interaction. Maybe you could just try to animate .container div ($thumbScroller_container.stop().animate()) based on its dimensions when mouse is off the thumbscroller.
HI,
This is a great script you posted, thank you so much.
Is there a way to slow down the speed of the scroll?
Thank you!
Hello!
The scrolling speed is set by the movement/position of the cursor over the thumbnails. What you can change is the ease amount of the animation by changing the value of animSpeed variable (in this demo: var animSpeed=600;). Thanks
That’s really useful. Thank you, I’m going to incorporate it into a friend’s photography blog now.
How do I implement this in my site? 😀 Great work btw!
You can check the source code from the demos. I’ll post the code properly as soon as possible. Thanks!
Edit: Done!
Dear malihu,
Your thumbnail scroll is awesome. I currently have a website that I need to start development on asap (design phase is done) and am wondering if you do web development. Or if you do consulting.
Great work!
Xavier
@Xavier
Yes I do. Drop me an e-mail whenever you want. Thanks!
Hello from Brazil friend, your blog is very important to me, I’ll always be waiting for new material in jquery
Thanks Bricio! I try to post interesting jquery stuff as frequently as I can.
hey thanks. this is what i need. gud work. can u please help me again.
open this site click on portfolio(guys) what i need is when u click on the image below see the effect and also when u clicked on second photo the effect is with white background. i need this in jquery. Can u please help me.
Thanks
This is very, very useful for me now!! Tanks 😀
Paylaşımlar güzelleşiyor paylaştıkça:)
Very Good Scroller!! Grate Work
Nice script! This is very useful for me!!
Very nice scroller. Thanks for sharing this nice idea 🙂
This is absolutely delightful! It’s exactly what I need and I just LOVE it! 🙂
I’ve just seen some of your other posts and they are quite beautiful. Keep up the good work. 🙂
Thanks Ivo, glad it helped 🙂
Hi dude… its a great plugin… just a question.. can i integrate it with the round border image??? i want implement it but with round border images… tyvm.. and congratulations for this plugin…
Can’t see why not.
Hi there,
great script!
I use tshf_container, but when I use some pictures with different width, the first image seems to be influent for the scrolling. If this first image is close, i cannot to to the last images, on the right (). If the the first image is large, the cursor go quickly in a “blank space”, but you can see all the pics (). the size of all the images is necessary with the same width ? Maybe you can help me…
Thx