malsup / cycle
- Source
- Commits
- Network (11)
- Issues (0)
- Downloads (16)
- Wiki (2)
- Graphs
-
Branch:
master
-
Delay on last slide, redirect after last slide
2 comments Created 19 days ago by naught101Over at drupal, we're trying to get a couple of new features into a module that uses this (very nice) plugin: http://drupal.org/node/515356
Specifically, the option to delay the slideshow on the last slide (or manually specify the delay on the last slide). It might also be good to allow a manually delay over ride on an arbitrary nth slide, dunno
And the option to redirect the browser to a given URL after the slide show has run through once.
Are these features that you think would be good to have in core Cycle Plugin, or should we just add them on to the drupal module version?
Comments
-
Looks like all of the docs pages suggested in the wiki are throwing 403 errors. It's possible to get the old docs from Google's cache, but would it be possible to either add them to the wiki or get those pages back up?
Comments
Docs and demos temporarily moved to: http://www.malsup.com/jquery/cycle2/
-
Just another idea I had lately: When dealing with more than one instance on the same page (maybe even all inside some ".slideshow" ;), it would be quite cool to chose the slideshow itself as trigger for the "next"/"prev" options instead of some element (because this is some kind of confusing when every .slideshow has a .next…).
Even more cool would be of course support for some syntax like "this ~ .next" (.next in the same div as the slideshow itself), this would make 1000 cycles on one page work like a charm. :)
Comments
Already supported via each loop. (http://www.malsup.com/jquery/cycle/multi3.html)
-
I'm currently dealing with some… well, non-slideshow use for your slideshow plugin and I want cycle to go just one slide further after the user clicked somewhere.
My solution is counting objects and using the slide number (and it works), but I'm pretty sure "next" and "prev" commands in cycle itself would be quite useful.
Comments
-
Javascript-bound event loop makes laptop fans go crazy
2 comments Created 7 months ago by johanDoing setTimeout (or setInterval) based animation tends to get laptops at rather high CPU usage so fans go on for their duty cycle on http://www.malsup.com/jquery/cycle/, or even for a basic fade $('#movie').cycle(); like at http://mashlogic.com/.
>Have you considered doing the animations in SMIL (http://www.w3.org/TR/SMIL2/ -- an open standard backed by the W3C, widely supported and implemented in all the major modern browsers)? That shoves the resource critical loop out of javascript space, where it doesn't boost CPU usage.
(The Fade example at the end of http://u.nu/86u8 exemplifies the difference between declarative animation and imperative code, where that page isn't measurably cpu bound, or at least not on the same order of magnitude as jQuery Cycle is.)
Comments
Definitely not considering this change any time soon. With the exception of the "wipe" transition, the Cycle plugin does not explicitly use setTimeout for the animation. Rather, it uses setTimeout to control when animations should start and then invokes jQuery's "animate" function for the effect. Of course, "animate" does use setInterval to manage the property changes. But right now Cycle is written to rely on the underlying core library for the effects.





You can use the 'timeoutFn' option to control the timeout values of every slide. Demo here:
http://www.malsup.com/jquery/cycle/timeout2.html
To redir the browser after the last slide you can use the 'end' callback (along with autostop:true).
sweet, thanks. I'll have a crack at that.