promotion

Showing posts with label open particular slide data orbit. Show all posts
Showing posts with label open particular slide data orbit. Show all posts

Friday, April 24, 2015

Foundation data orbit open specific slide on load

Here is the simple way to open the the particular slide on page load:
$.fx.off = true;
$("[data-orbit-slide='"+index+"']").trigger("click");
$.fx.off = false;
Above code will first disable the jquery effects & then triggers the particular slide and then enables the jquery effect. This way we can open any slide without animation.
Note: Here index is slide number(index always starts with 0).