Open ssavery opened 8 years ago
@ssavery , what version of plugin are you using? I checked recently my implementation, and it works like a charm when using the startAt
parameter during Initialization stage.
var slyOptions = {
horizontal: true,
itemNav: 'basic',
speed: 300,
mouseDragging: false,
touchDragging: true,
// controls to navigate
nextPage: $navRight,
prevPage: $navLeft,
// navigate to active position, if applicable
startAt: activeElementPosition // <===== here's it
};
slyInstance = new Sly($frameSelector, slyOptions).init();
Hey there,
I'm trying to get an image gallery to start on the 3rd image so that when the page loads, the gallery appears to be centered (like the image below)![centered](https://cloud.githubusercontent.com/assets/1145502/11606761/e1fcd4a2-9afa-11e5-85c0-5c136986a812.jpg)
However, I cannot seem to get the startAT: string to work... Check it out - www.brokenknucklefilmfest.com/page6.html
The page loads with the images off center. What am I missing here?
Please excuse my sloppy code...
Thanks for any help!