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