- Posts: 1
- Thank you received: 0
rewind transition
-
opensrcguru
Inactive member - Topic Author
- New Member
Less
More
14 years 11 months ago #363
by opensrcguru
rewind transition was created by opensrcguru
After all the images are rotated through the first time, the images do somewhat of a fast rewind through all previously displayed images. can that behavior be set to something different? i'd like a simple loop just like the initial load of the slider. nothing fancy.
Please Log in to join the conversation.
-
fAdEd1
Inactive member - New Member
Less
More
- Posts: 8
- Thank you received: 0
14 years 11 months ago #366
by fAdEd1
Replied by fAdEd1 on topic Re: rewind transition
I agree. How is this done?
I'd also like to edit the transition, such as fade effects and slide directions..
I'd also like to edit the transition, such as fade effects and slide directions..
Please Log in to join the conversation.
-
milos
Support Staff - Moderator
Less
More
- Posts: 6744
- Thank you received: 716
14 years 11 months ago #367
by milos
Replied by milos on topic Re: rewind transition
Currently, this is not possible, unless you are familiar with Javascript and jQuery to manually edit module. We are currently busy with other jobs, but we will consider to add these features in one of the next versions.
Please Log in to join the conversation.
-
fota
Inactive member - New Member
Less
More
- Posts: 2
- Thank you received: 0
14 years 6 months ago #1436
by fota
Replied by fota on topic Re: rewind transition
a small workaround to do the trick i.e. when you get to the last image, start going backwards until you get to the first one (one by one). then it repeats. So:
in scripts.js replace:
auto: function () {
.....
slider.slide(next);
},
with:
auto: function () {
if (!slider.ar) return false;
if (direction==1) var next = slider.cur + 1;
if (direction==0) var next = slider.cur - 1;
if (next >= slider.num) {next = slider.cur - 1; direction=0;}
if (next < 0) {next = slider.cur + 1; direction=1;}
slider.slide(next);
},
Then at the beginning of the file add:
var direction = 1;
in scripts.js replace:
auto: function () {
.....
slider.slide(next);
},
with:
auto: function () {
if (!slider.ar) return false;
if (direction==1) var next = slider.cur + 1;
if (direction==0) var next = slider.cur - 1;
if (next >= slider.num) {next = slider.cur - 1; direction=0;}
if (next < 0) {next = slider.cur + 1; direction=1;}
slider.slide(next);
},
Then at the beginning of the file add:
var direction = 1;
Please Log in to join the conversation.
Time to create page: 0.164 seconds