Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #198755

    Hi,

    I would like to know how to stop the slider (avia by default) after the first run in autorotation mode.
    I don’t want any loop, just the slider stopping on the last image.

    Thanks for reply.
    Regards,
    Thomas

    #198903

    Hey spiritol!

    Open up /wp-content/themes/angular/js/aviapoly.js and replace

    
    				start_autorotation: function()
    				{
    					if(slider.count)
    					{
    						slider.interval = setInterval(function()
    						{
    							if(slider.options.autorotation)
    							{	
    								slider.trigger('switch.'+pluginNameSpace, 'next');
    							}
    						}, 
    						slider.options.autorotationTimer * 1000);
    					}
    				},
    

    with

    
    				start_autorotation: function()
    				{
    					var loop_slide_counter = 1;
    					if(slider.count)
    					{
    						slider.interval = setInterval(function()
    						{
    							if(slider.options.autorotation)
    							{	
    								if(loop_slide_counter <= slider.count)
    								{
    									slider.trigger('switch.'+pluginNameSpace, 'next');
    								}
    								else
    								{
    									methods.pause_slider();
    								}
    								loop_slide_counter++;
    							}
    						}, 
    						slider.options.autorotationTimer * 1000);
    					}
    				},
    

    Regards,
    Peter

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.