Support » Plugin: MetaSlider » Is it possible to change delay time per slide?

  • Resolved TecBrat

    (@tecbrat)


    In either MetaSlider or MetaSlider Pro, is there a way to set a different delay time per slide?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor DNutbourne

    (@dnutbourne)

    Hi,

    No, I’m afraid that it is not possible to set separate delay times for individual slides.

    Plugin Author David Anderson

    (@davidanderson)

    @kbatdorf Is this on our roadmap? It seems like something a lot of people might want to do.

    Plugin Contributor kbatdorf

    (@kbat82)

    @davidanderson, I can give it more priority.

    @tecbrat, I know this is late, and I haven’t tested this, but someone figured out a way to set a longer time for the first slide by adding a filter:

    https://gist.github.com/tomhemsley/9247378

    function metaslider_delay_first_slide($options, $slider_id, $settings) {
        $delay = 5000; // delay for first slide in milliseconds
        $options['start'][] = "slider.pause(); setTimeout(function(){ slider.play(); }, {$delay});" ;
        $options['after'][] = "if (slider.currentSlide == 0) { slider.pause(); setTimeout(function(){ slider.play(); }, {$delay}); }" ;
        return $options;
    }
    add_filter('metaslider_flex_slider_parameters', 'metaslider_delay_first_slide', 10, 3);
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Is it possible to change delay time per slide?’ is closed to new replies.