You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if done it with CSS classes for the set of simple bullet pagination.
You'll need a set (same quantitiy as backstretch images) of bullets in your HTML code, each bullet(image or character) with class="pag". Put this inside document ready.
// Set active for the first bullet when document ready;;$('.pag').first().addClass('pagact');// Since you called it as $.backstretch, it's attached to the bodyvarinstance=$("body").data("backstretch");$('.pag').click(function(){varindex=$('.pag').index($(this));$('.pag').removeClass('pagact');$(this).addClass('pagact');// Show the slide based on the clicked indexinstance.show(index);// Return false, so that the click doesn't change the page hashreturnfalse;});// Set the current pagination active while running as slideshow$(window).on("backstretch.before",function(e,instance,index){$('.pag').removeClass('pagact').eq(index).addClass('pagact');});
hi!
’m thing about how add a pagination on the slide(fade slideshow ver)
if you have some of example,could you show me?
thx.
The text was updated successfully, but these errors were encountered: