You will recieve your password to this address. Address is not made public.

Your preferred username that is used when logging in.

circular (continuous) scrolling with an uneven number of images Created Mar 16, 2010

This thread is solved

Views: 5148     Replies: 14     Last reply Feb 16, 2011  
You must login first before you can use this feature

Corey
http://gelform.com

Posts: 2

Registered:
Jun 13, 2009

circular (continuous) scrolling with an uneven number of images

Posted: Mar 16, 2010

I have a circular scrollable gallery, that's triggerd by the default next and prev buttons.

My code is simple:
$("div.scrollable").scrollable({
	clickable: false,
	size: 5
)
.circular();
But instead of 3 pages of 5 items each, I have 16 items.

When I get to the "4th page" it jumps by one.

So I changed the page size to 1:
$("div.scrollable").scrollable({
	clickable: false,
	size: 1
)
.circular();

But when it gets to the last item, there are 4 empty items before the first one comes around again.

Is there a trick to making a circular, continuous scrollable with an uneven number of items?

timbo@timbo.nl

Posts: 4

Registered:
Mar 9, 2010

» circular (continuous) scrolling with an uneven number of images

Posted: Mar 19, 2010

Reply to: circular (continuous) scrolling with an uneven number of images, from gelform
I have the same problem, there is coming a gap between de last item...

you can see it on:

http://test.theater-diligentia.nl/

is there an solution for it?

MentalPower

Posts: 1

Registered:
Mar 22, 2010

» » circular (continuous) scrolling with an uneven number of images

Posted: Mar 22, 2010

Reply to: » circular (continuous) scrolling with an uneven number of images, from timbo@timbo.nl
Size is the number of visible items within the scrollable-enabled HTML element. This property can also be referred to as the "page size", since it defines how many items are moved in a particular direction when either the nextPage or prevPage actions are executed.

(Taken verbatim fromhttp://flowplayer.org/tools/scrollable.html)

In Timbo's case size should be 2.

vrnet

Posts: 3

Registered:
Oct 31, 2009

» circular (continuous) scrolling with an uneven number of images

Posted: Mar 23, 2010

Reply to: circular (continuous) scrolling with an uneven number of images, from gelform
Hi,

Same problem here for me (left hand side vertical Scrollable) :
http://www.cruselita-shop.com/index.php/fr_fr/presentoir-bijoux-bague.html

My client wants to have a 1 by 1 scroll (size:1) but having the carousel looping (thus using circular() ). So setting the size to 4 in my case is not an option.

So, basically, how to make sure that, when the "size" is lower than the actual number of displayed items, the circular() plug in correctly displays the first item at the right moment ?

Thanks !
Hervé

ragunaru

Posts: 4

Registered:
Apr 13, 2010

» circular (continuous) scrolling with an uneven number of images

Posted: Apr 13, 2010

Reply to: circular (continuous) scrolling with an uneven number of images, from gelform
Exactly the same issue for me. Basically what I'm after is that I have 5 visible items, they scroll one by one. But I don't want the list to reach to the start of the list to start displaying from the beginning, I get like 2 empty slots before it loads them again. You know what I mean.

Why couldn't the the list start looping when the last item of the list scrolls to the viewport? I mean, technically it does do that, but the possibility of having the viewport bigger than the item itself hasn't been calculated in here.

Well anyway, if the previous examples given here before me weren't enough, this is my piece of work in progress:

http://dl.dropbox.com/u/134218/OP/html/index.html

smithr

Posts: 3

Registered:
Apr 13, 2010

I am having the exact same problem.

Posted: Apr 13, 2010

Reply to: » circular (continuous) scrolling with an uneven number of images, from ragunaru
Similar to ragunaru.. Is there anyway to preload the images so that when the last image enters the viewport the first ones are ready to go?

Any help would be greatly appreciated

ragunaru

Posts: 4

Registered:
Apr 13, 2010

» » circular (continuous) scrolling with an uneven number of images

Posted: Apr 21, 2010

Reply to: » circular (continuous) scrolling with an uneven number of images, from ragunaru
Anyway, I somehow managed to get a workaround here. Good to see the amazing response time of the developer, though.

222ridepegasus

Posts: 13

Registered:
Apr 25, 2010

I think I have the Same issue? help :)

Posted: Apr 26, 2010

Reply to: » » circular (continuous) scrolling with an uneven number of images, from ragunaru
Hi Ragunaru.... I think I have the same issue here, how did you manage to get your's to Loop seamlessly ?

I have x2 visible images and want to scroll one image at a time....

http://is.gd/bH5lN

Any help greatly appreciated :-) its got me well confused....

ragunaru

Posts: 4

Registered:
Apr 13, 2010

» I think I have the Same issue? help :)

Posted: Apr 26, 2010

Reply to: I think I have the Same issue? help :), from 222ridepegasus
Hey, you!

Hmm, well, honestly... I'm not even sure how or why it's working but it is. I was just playing around without really expecting anything. Actually, you can't have scroll buttons the way I set it up, it's just on auto scroll. Wait, I'll give you the code I'm using.


$("div#intro_slider_content").scrollable({size: 5}).circular().autoscroll({interval: 3000, autoplay: true, step: 2});

Just try to use this and it should work out somehow. Just play around with it. But, yeah, unfortunately you have to forget about the scrolling buttons then as it'll scroll the amount that is set with the "size"... in my case it's 5 as I have 5 visible items. In your case it should be 2 then. I'm not sure if the autoscroll will scroll one at a time in your case but if it does in my case, why shouldn't it, right? Anyway, I know I'm not being much helpful but you have to manage somehow as the developer doesn't seem to care all that much. Maybe aliens abducted him, that would explain a lot.

Anyway, take care! If you have more questions, I'd be glad to help in any way I can. :)

222ridepegasus

Posts: 13

Registered:
Apr 25, 2010

» » I think I have the Same issue? help :)

Posted: Apr 26, 2010

Reply to: » I think I have the Same issue? help :), from ragunaru
Hey Ragunaru...

thanks for the response there, I see yours works great, also yes I need the Nav Buttons, and no Auto Scroll...

So close but yet.... I also achieved some similar results using

http://www.malsup.com/jquery/cycle/

but these are all based around 1 visible slide, not 2 or 5 .....

anyway many thanks for the response....

Kie

katart

Posts: 8

Registered:
Nov 6, 2009

Using 1.1.2

Posted: May 4, 2010

Reply to: » I think I have the Same issue? help :), from ragunaru
@ragunaru

You are using version 1.1.2 to get this to work. This doesn't work 1.2.

jason

Posts: 5

Registered:
Mar 30, 2010

Using the latest jquery tools

Posted: Aug 2, 2010

Reply to: circular (continuous) scrolling with an uneven number of images, from gelform
I'm having the exact same problem.

Is there no solution to this?
See my problem in more detail:

http://stackoverflow.com/questions/3385892/jquery-tools-scrollable-circular-problem-with-a-logo-parade-logos-dont-re

Please help!

jason

Posts: 5

Registered:
Mar 30, 2010

solution?

Posted: Aug 2, 2010

Reply to: Using the latest jquery tools, from jasonfonseca
Hey,

Someone kindly posted a solution here:

http://flowplayer.org/tools/forum/35/46918

sprynmr

Posts: 12

Registered:
Feb 10, 2009

Solution here

Posted: Oct 29, 2010

Reply to: solution?, from jasonfonseca
Not sure if anyone is still trying to do this, but I've solved it. My change below allows you to have multiple scrollable items visible in circular fashion:

my html:

    <div class="scrollable">
        <div class="items">
            <div class="item">1</div>
            <div class="item">2</div>
            <div class="item">3</div>
            <div class="item">4</div>
        </div>
    </div>

my css:

.scrollable {
    position: relative;
    overflow: hidden;
    height: 300px;
    width: 600px;
}
.scrollable .items {
    position: absolute;
    height: 20000em;
}
.item {
    color: white;
    height: 100px;
    width: 300px;
    background: blue;
    text-align: center;
}

http://screencast.com/t/CgcwIcgU5S

Github changes:http://github.com/sprynmr/jquerytools/commit/7e8ec2f683dfdcdda0d65818ed5decdbb762c4d1

In scrollable.js (v1.2.5) if you add the size config back with a default of 1:

conf: {	
	activeClass: 'active',
	circular: false,
	clonedClass: 'cloned',
	disabledClass: 'disabled',
	easing: 'swing',
	initialIndex: 0,
	item: null,
	items: '.items',
	keyboard: true,
	mousewheel: false,
	next: '.next',   
	prev: '.prev', 
	size: 1,
	speed: 400,
	vertical: false,
	touch: true,
	wheelSpeed: 0
}

and then after the if (conf.circular) change the two clone variable lines to this:


var items = self.getItems();
var cloned1 = items.slice(-1).clone().prependTo(itemWrap),
	 cloned2 = items.filter(":lt(" + conf.size + ")").clone().appendTo(itemWrap);
	 items = null;

mkimitch

Posts: 2

Registered:
Feb 16, 2011

» Solution here

Posted: Feb 16, 2011

Reply to: Solution here, from sprynmr
Is there anyway to get this to work with autoscroll activated?