promotion

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).

No comments:

Post a Comment