Meteor Slides
[resolved] Random Start Slide (2 posts)

  1. choeft
    Posted 2 years ago #

    Hey Josh,

    great plugin - I have been using it in multiple projects.

    Recently, I had to implement the possibility to use a randow startslide (I know this has been asked before), but I wanted to share my solution, maybe you want to add that option to the core.

    in slideshow.js:

    //var $totalSlides	= 6;
    var $totalSlides	= $j('.mslide').length;
    // Setup jQuery Cycle
    //... general Meteor Slides Code
    startingSlide: Math.floor(Math.random() * $totalSlides)

    Im making use of the startingSlide option, which is already included in the cycle plugin. It's really a small, but useful addition.

    Again, thanks for this great plugin!



  2. Josh Leuze
    Plugin Author

    Posted 1 year ago #

    Thanks for sharing Constantin, I'll try that out!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic